[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

Raymond Hettinger report at bugs.python.org
Thu Nov 4 00:33:20 CET 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

> I'd be inclined to insert a check that falls back 
> to the "unorderable_list_difference" approach in 
> the case where "expected != sorted(reversed(expected))".

Too fragile and subtle.  The method need to be absolutely straight-forward.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10242>
_______________________________________


More information about the Python-bugs-list mailing list