From: Gregory P. Smith Date: Sun, 26 Apr 2015 05:05:53 +0000 (+0000) Subject: Use assertEqual rather than assertEquals to avoid the deprecation warning. X-Git-Tag: v3.5.0b1~287 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32d34bcf1d8b6b409df998ab73bba1e17d5862e9;p=thirdparty%2FPython%2Fcpython.git Use assertEqual rather than assertEquals to avoid the deprecation warning. --- diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 1c832aa9e692..a075cdeb0e1d 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -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"")