summaryrefslogtreecommitdiff
path: root/Lib/test/test_collections.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-11-20 19:04:17 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-11-20 19:04:17 +0000
commit19449cb010e5ef7c775b582a56f477ef67c57f8c (patch)
tree2b8b721dc50b35778db823b629b4e1ffa4c3566a /Lib/test/test_collections.py
parentddc3434e315497707d753cfcd4a7c19efbec643a (diff)
downloadcpython-19449cb010e5ef7c775b582a56f477ef67c57f8c.tar.gz
#9424: Replace deprecated assert* methods in the Python test suite.
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r--Lib/test/test_collections.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
index 51e93e4cff..f3f8b03156 100644
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -701,9 +701,9 @@ class TestCounter(unittest.TestCase):
]):
msg = (i, dup, words)
self.assertTrue(dup is not words)
- self.assertEquals(dup, words)
- self.assertEquals(len(dup), len(words))
- self.assertEquals(type(dup), type(words))
+ self.assertEqual(dup, words)
+ self.assertEqual(len(dup), len(words))
+ self.assertEqual(type(dup), type(words))
def test_conversions(self):
# Convert to: set, list, dict
@@ -922,10 +922,10 @@ class TestOrderedDict(unittest.TestCase):
OrderedDict(od),
]):
self.assertTrue(dup is not od)
- self.assertEquals(dup, od)
- self.assertEquals(list(dup.items()), list(od.items()))
- self.assertEquals(len(dup), len(od))
- self.assertEquals(type(dup), type(od))
+ self.assertEqual(dup, od)
+ self.assertEqual(list(dup.items()), list(od.items()))
+ self.assertEqual(len(dup), len(od))
+ self.assertEqual(type(dup), type(od))
def test_yaml_linkage(self):
# Verify that __reduce__ is setup in a way that supports PyYAML's dump() feature.