[New-bugs-announce] [issue38240] assertCountEqual is horribly misleading, sounds like only counts are being compared

Vitaly Kruglikov report at bugs.python.org
Fri Sep 20 17:55:35 EDT 2019


New submission from Vitaly Kruglikov <vitaly.krug at gmail.com>:

assertCountEqual is a horribly misleading name because it misleads the programmer and reader of the test code into thinking that it only compares the counts of the elements.

It's name misrepresents what it does in a really bad way.

----------
components: Tests
messages: 352901
nosy: vitaly.krug
priority: normal
severity: normal
status: open
title: assertCountEqual is horribly misleading, sounds like only counts are being compared
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38240>
_______________________________________


More information about the New-bugs-announce mailing list