[issue10573] Consistency in unittest assert methods: order of actual, expected

Michael Foord report at bugs.python.org
Mon Jan 24 01:32:06 CET 2011


Michael Foord <michael at voidspace.org.uk> added the comment:

Note that I looked at making the sequence comparison code symmetric - but it generates nice diffs for even nested containers by using prettyprint and difflib. Switching to a symmetric output ("in first, not in second" etc) would be very difficult without losing functionality.

Generating these diffs can be very slow though, so it may be an issue that needs revisiting.

----------

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


More information about the Python-bugs-list mailing list