[issue46610] assertCountEqual doesn't work as expected for dictionary elements
Eric V. Smith
report at bugs.python.org
Wed Feb 2 09:04:32 EST 2022
Eric V. Smith <eric at trueblade.com> added the comment:
The PR changes the meaning of assertCountEqual. https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertCountEqual says: Equivalent to: assertEqual(Counter(list(first)), Counter(list(second))) ...
At the very least, the documentation would need to be updated. But since this could be a breaking change, I don't think it will be accepted.
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46610>
_______________________________________
More information about the Python-bugs-list
mailing list