summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-11-29 02:02:10 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-11-29 02:02:10 (GMT)
commit263cbdfdfb0a7fe13f04c1b3188968d7a39d7d09 (patch)
tree1fa7e0a7327a502ba0ba4d3c8acbbc185554709d /Lib
parent40b8cf528fdc7896c3677342f6050b4d80377ee4 (diff)
downloadcpython-263cbdfdfb0a7fe13f04c1b3188968d7a39d7d09.zip
cpython-263cbdfdfb0a7fe13f04c1b3188968d7a39d7d09.tar.gz
cpython-263cbdfdfb0a7fe13f04c1b3188968d7a39d7d09.tar.bz2
Use assertCountEqual instead of assertItemsEqual
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_cfgparser.py2
-rw-r--r--Lib/test/test_cgi.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py
index fc8b2ad..38dd34b 100644
--- a/Lib/test/test_cfgparser.py
+++ b/Lib/test/test_cfgparser.py
@@ -357,7 +357,7 @@ boolean {0[0]} NO
L = [section for section in cf]
L.sort()
eq = self.assertEqual
- elem_eq = self.assertItemsEqual
+ elem_eq = self.assertCountEqual
eq(L, sorted(["A", "B", self.default_section, "a"]))
eq(cf["a"].keys(), {"b"})
eq(cf["a"]["b"], "value",
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py
index a7b9ea3..2dcbfc1 100644
--- a/Lib/test/test_cgi.py
+++ b/Lib/test/test_cgi.py
@@ -131,7 +131,7 @@ class CgiTests(unittest.TestCase):
if isinstance(expect, dict):
# test dict interface
self.assertEqual(len(expect), len(fs))
- self.assertItemsEqual(expect.keys(), fs.keys())
+ self.assertCountEqual(expect.keys(), fs.keys())
##self.assertEqual(norm(expect.values()), norm(fs.values()))
##self.assertEqual(norm(expect.items()), norm(fs.items()))
self.assertEqual(fs.getvalue("nonexistent field", "default"), "default")