mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	bpo-35918: Remove broken has_key method and add test (#11819)
This commit is contained in:
		
							parent
							
								
									522346d792
								
							
						
					
					
						commit
						a31f4cc881
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -4897,8 +4897,6 @@ def _test_dict(cls, obj): | |||
|         assert len(obj) == 1 | ||||
|         assert obj['foo'] == 5 | ||||
|         assert obj.get('foo') == 5 | ||||
|         # TODO: fix https://bugs.python.org/issue35918 | ||||
|         # assert obj.has_key('foo') | ||||
|         assert list(obj.items()) == [('foo', 5)] | ||||
|         assert list(obj.keys()) == ['foo'] | ||||
|         assert list(obj.values()) == [5] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Lapeyre
						Rémi Lapeyre