[New-bugs-announce] [issue11887] unittest fails on comparing str with bytes if python has the -bb option

STINNER Victor report at bugs.python.org
Wed Apr 20 17:35:53 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

assertEqual(), assertListEqual(), assertSequenceEqual() emits a BytesWarning warning or raise a BytesWarning exception if python has -b or -bb option. Attached patch adds tests to demonstrate this issue.

----------
components: Library (Lib), Tests, Unicode
messages: 134158
nosy: eric.araujo, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: unittest fails on comparing str with bytes if python has the -bb option
versions: Python 3.1, Python 3.2, Python 3.3

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


More information about the New-bugs-announce mailing list