[Python-checkins] r87468 - python/branches/py3k/Lib/unittest/case.py

raymond.hettinger python-checkins at python.org
Fri Dec 24 01:58:34 CET 2010


Author: raymond.hettinger
Date: Fri Dec 24 01:58:34 2010
New Revision: 87468

Log:
Fix docstring.


Modified:
   python/branches/py3k/Lib/unittest/case.py

Modified: python/branches/py3k/Lib/unittest/case.py
==============================================================================
--- python/branches/py3k/Lib/unittest/case.py	(original)
+++ python/branches/py3k/Lib/unittest/case.py	Fri Dec 24 01:58:34 2010
@@ -1005,11 +1005,11 @@
 
     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:


More information about the Python-checkins mailing list