[issue8533] regrtest: use backslashreplace error handler for stdout

STINNER Victor report at bugs.python.org
Sat Oct 9 10:16:36 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

py3k_also_no_unicode_error_on_direct_test_run.patch comes a little bit too late:

$ LANG= ./python Lib/test/regrtest.py -v test_time
== CPython 3.2a2+ (py3k, Oct 8 2010, 01:40:20) [GCC 4.4.5 20100909 (prerelease)]
==   Linux-2.6.32-trunk-686-i686-with-debian-squeeze-sid little-endian
==   Traceback (most recent call last):
  File "Lib/test/regrtest.py", line 1478, in <module>
    main()
  File "Lib/test/regrtest.py", line 454, in main
    print("==  ", os.getcwd())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 20-21: ordinal not in range(128)

My working directory is /home/haypo/prog/SVN/py3ké.

----------

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


More information about the Python-bugs-list mailing list