[issue34806] distutils tests fail with recent 3.7 branch

STINNER Victor report at bugs.python.org
Wed Sep 26 08:54:05 EDT 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> well, it was top of the branch yesterday

Hum, I don't understand because we don't have the same line number:

  File "/usr/lib/python3.7/distutils/log.py", line 34, in _log
    stream.write('%s\n' % msg)

$ git show bbdf8723324e31675f298dd273733cc13e1518df:Lib/distutils/log.py|gvim -

(...)
            try:
                stream.write('%s\n' % msg)
            except UnicodeEncodeError:
                # emulate backslashreplace error handler
                encoding = stream.encoding   # <~~~ line 34
                msg = msg.encode(encoding, "backslashreplace").decode(encoding)
                stream.write('%s\n' % msg)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34806>
_______________________________________


More information about the Python-bugs-list mailing list