STINNER Victor <vstin...@redhat.com> added the comment:
I don't understand this bug report. "./python -m test test_distutils -v -m test_non_ascii" pass in 3.6, 3.7 and master branches. > two distutils tests fail when running the tests from an installed location. > 3.7 branch 20180925, succeeded with a 20180911 snapshot. I don't know what are these branches. I tested the v3.7.0 test: "./python -m test test_distutils -v -m test_non_ascii" pass as well. It seems like you tested something between 3.7.0 and the current 3.7 branch. I suggest you to wait for the 3.7.1 release which should be release next weeks. -- distutils/log.py evolved a lot. The code now uses: try: stream.write('%s\n' % msg) except UnicodeEncodeError: # emulate backslashreplace error handler encoding = stream.encoding msg = msg.encode(encoding, "backslashreplace").decode(encoding) stream.write('%s\n' % msg) Your traceback shows a stream.write() call on line 34, which isn't the case on the current 3.7 branch. So you are testing an outdated 3.7 commit. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34806> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com