Kaydet (Commit) 32d34bcf authored tarafından Gregory P. Smith's avatar Gregory P. Smith

Use assertEqual rather than assertEquals to avoid the deprecation warning.

üst 5d0ccd2f
......@@ -304,10 +304,10 @@ class BaseBytesTest:
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"")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment