[issue4584] doctest fails to display bytes type

2008-12-07 Thread Michael Yang
New submission from Michael Yang <[EMAIL PROTECTED]>: doctest.testmod() fails when attempting to echo back a bytes type with ord() > 128. def ok(): """ >>> bytes([255,]) b'\xff' """ pass def notOK(): """ >>> b'\xff' """ pass import doctest doctest.testmod() Traceback (most r

[issue4584] doctest fails to display bytes type

2008-12-07 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: You've included a chr(255) character in your docstring. You need to escape the backslash in order to include the bytes representation like it will be generated. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed ___