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
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
___