mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Use assertEqual rather than assertEquals to avoid the deprecation warning.
This commit is contained in:
		
							parent
							
								
									5d0ccd2f91
								
							
						
					
					
						commit
						32d34bcf1d
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -304,10 +304,10 @@ def test_fromhex(self): | |||
|     def test_hex(self): | ||||
|         self.assertRaises(TypeError, self.type2test.hex) | ||||
|         self.assertRaises(TypeError, self.type2test.hex, 1) | ||||
|         self.assertEquals(self.type2test(b"").hex(), "") | ||||
|         self.assertEquals(bytearray([0x1a, 0x2b, 0x30]).hex(), '1a2b30') | ||||
|         self.assertEquals(self.type2test(b"\x1a\x2b\x30").hex(), '1a2b30') | ||||
|         self.assertEquals(memoryview(b"\x1a\x2b\x30").hex(), '1a2b30') | ||||
|         self.assertEqual(self.type2test(b"").hex(), "") | ||||
|         self.assertEqual(bytearray([0x1a, 0x2b, 0x30]).hex(), '1a2b30') | ||||
|         self.assertEqual(self.type2test(b"\x1a\x2b\x30").hex(), '1a2b30') | ||||
|         self.assertEqual(memoryview(b"\x1a\x2b\x30").hex(), '1a2b30') | ||||
| 
 | ||||
|     def test_join(self): | ||||
|         self.assertEqual(self.type2test(b"").join([]), b"") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gregory P. Smith
						Gregory P. Smith