]> granicus.if.org Git - python/commitdiff
Document that TestCase.assertCountEqual() can take iterables (GH-686)
authorjkleint <jkleint@users.noreply.github.com>
Tue, 23 Apr 2019 08:34:29 +0000 (01:34 -0700)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Tue, 23 Apr 2019 08:34:29 +0000 (01:34 -0700)
Lib/unittest/case.py

index 972a4658b17ba8885e5c27b44747c4f4e1162658..8ff2546fc207cceef2b70b804e46e5b31fa47ca8 100644 (file)
@@ -1244,9 +1244,8 @@ class TestCase(object):
 
 
     def assertCountEqual(self, first, second, msg=None):
-        """An unordered sequence comparison asserting that the same elements,
-        regardless of order.  If the same element occurs more than once,
-        it verifies that the elements occur the same number of times.
+        """Asserts that two iterables have the same elements, the same number of
+        times, without regard to order.
 
             self.assertEqual(Counter(list(first)),
                              Counter(list(second)))