[issue11887] unittest fails on comparing str with bytes if python has the -bb option
Nick Coghlan
report at bugs.python.org
Mon May 2 16:12:08 CEST 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
I'm OK with that - I'd actually suggest explicitly *emitting* a warning when the error is suppressed under -bb, as Ezio is right that even tests should be keeping their bytes/str separation straight. I don't like completely suppressing warnings/errors when a user has explicitly requested them.
I'd also be OK with a filtering approach that coerced the handling to "default" rather than "ignore" (although that require a bit more work to keep unittest from acting as though -b was always set on the command line).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11887>
_______________________________________
More information about the Python-bugs-list
mailing list