[issue27071] unittest.TestCase.assertCountEqual is a very misleading name
Terry J. Reedy
report at bugs.python.org
Fri Sep 11 18:05:33 EDT 2020
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Issue 38240 was closed as a duplicate of this. After reconsidering, I agree with leaving the name alone. Changing test assertXXX method names is a big nuisance, which we have done enough of.
If one is using IDLE,
>>> unittest.TestCase.assertCountEqual(
displays a boxed calltip with the signature and the two line summary that seems clear enough to me. Good names are good; so are good docstring summaries.
________________________________________________________________________
|(self, first, second, msg=None) |
|Asserts that two iterables have the same elements, the same number of |
|times, without regard to order. |
------------------------------------------------------------------------
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27071>
_______________________________________
More information about the Python-bugs-list
mailing list