diff options
author | jkleint <jkleint@users.noreply.github.com> | 2019-04-23 08:34:29 (GMT) |
---|---|---|
committer | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-04-23 08:34:29 (GMT) |
commit | 39baace622564867f55cea49483dd1443b8655e3 (patch) | |
tree | d96ddd3d215a1f2f9ccefa5aec4a5f11e9925581 /Lib/unittest | |
parent | b4c7f39bbf8f16a0da758601b33aec3ba531c8d6 (diff) | |
download | cpython-39baace622564867f55cea49483dd1443b8655e3.zip cpython-39baace622564867f55cea49483dd1443b8655e3.tar.gz cpython-39baace622564867f55cea49483dd1443b8655e3.tar.bz2 |
Document that TestCase.assertCountEqual() can take iterables (GH-686)
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/case.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 972a465..8ff2546 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))) |