From: jkleint Date: Tue, 23 Apr 2019 08:34:29 +0000 (-0700) Subject: Document that TestCase.assertCountEqual() can take iterables (GH-686) X-Git-Tag: v3.8.0a4~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39baace622564867f55cea49483dd1443b8655e3;p=python Document that TestCase.assertCountEqual() can take iterables (GH-686) --- diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 972a4658b1..8ff2546fc2 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -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)))