[New-bugs-announce] [issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail
Florent Xicluna
report at bugs.python.org
Mon Feb 1 22:43:34 CET 2010
New submission from Florent Xicluna <laxyf at yahoo.fr>:
The current behavior of "assertSameElements" is not correctly documented.
The unit test confirm that it is a tested behaviour.
However it seems more useful to provide a method which compares the actual count of each element in both sequences.
There's already some use cases in the stdlib test suite.
Proposed behavior:
Success: assertSameElements([1, None, None], [None, 1, None])
Failure: assertSameElements([1, None, None], [1, 1, 1, None])
----------
messages: 98692
nosy: ezio.melotti, flox, gregory.p.smith
priority: normal
severity: normal
status: open
title: assertSameElements([0, 1, 1], [0, 0, 1]) does not fail
type: feature request
versions: Python 2.7, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7832>
_______________________________________
More information about the New-bugs-announce
mailing list