Message77264
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 recent call last):
...
UnicodeEncodeError: 'ascii' codec can't encode character '\xff' in
position 141: ordinal not in range(128) |
|
Date |
User |
Action |
Args |
2008-12-07 21:44:07 | msyang | set | recipients:
+ msyang |
2008-12-07 21:44:07 | msyang | set | messageid: <1228686247.24.0.760042500601.issue4584@psf.upfronthosting.co.za> |
2008-12-07 21:44:06 | msyang | link | issue4584 messages |
2008-12-07 21:44:06 | msyang | create | |
|