summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-12-24 00:58:34 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-12-24 00:58:34 (GMT)
commitc44befb82e747ab40ff32a97c50ea16f3ffb07dc (patch)
tree4d985cdca6a6b43120c4f37b92897c8c70580f3e
parent6518f5e78060f0d1cbc44b3034427fe0300fb062 (diff)
downloadcpython-c44befb82e747ab40ff32a97c50ea16f3ffb07dc.zip
cpython-c44befb82e747ab40ff32a97c50ea16f3ffb07dc.tar.gz
cpython-c44befb82e747ab40ff32a97c50ea16f3ffb07dc.tar.bz2
Fix docstring.
-rw-r--r--Lib/unittest/case.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index ad5fe61..02dbd7e 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -1005,11 +1005,11 @@ class TestCase(object):
def assertCountEqual(self, actual, expected, msg=None):
"""An unordered sequence specific comparison. It asserts that
- actual_seq and expected_seq have the same element counts.
+ actual and expected have the same element counts.
Equivalent to::
- self.assertEqual(Counter(actual_seq),
- Counter(expected_seq))
+ self.assertEqual(Counter(list(actual)),
+ Counter(list(expected)))
Asserts that each element has the same count in both sequences.
Example: