summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-04-26 05:05:53 (GMT)
committerGregory P. Smith <greg@krypto.org>2015-04-26 05:05:53 (GMT)
commit32d34bcf1d8b6b409df998ab73bba1e17d5862e9 (patch)
treebb029c82c5436acb1ec0e9e126b4f1c5103c6aa7 /Lib/test/test_bytes.py
parent5d0ccd2f91965228921663032256eb165c9c2680 (diff)
downloadcpython-32d34bcf1d8b6b409df998ab73bba1e17d5862e9.zip
cpython-32d34bcf1d8b6b409df998ab73bba1e17d5862e9.tar.gz
cpython-32d34bcf1d8b6b409df998ab73bba1e17d5862e9.tar.bz2
Use assertEqual rather than assertEquals to avoid the deprecation warning.
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r--Lib/test/test_bytes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index 1c832aa..a075cde 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"")