]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix docstring.
authorRaymond Hettinger <python@rcn.com>
Fri, 24 Dec 2010 00:58:34 +0000 (00:58 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 24 Dec 2010 00:58:34 +0000 (00:58 +0000)
Lib/unittest/case.py

index ad5fe6158968677fd5b707f807d2fef4f7c7ffdf..02dbd7e199867bb05961e99979c19ccd895d1366 100644 (file)
@@ -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: