This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients doko, dstufft, eric.araujo, ncoghlan, serhiy.storchaka, steve.dower, vstinner, xtreak
Date 2018-09-26.11:18:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537960734.72.0.545547206417.issue34806@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-09-26 11:18:54vstinnersetrecipients: + vstinner, doko, ncoghlan, eric.araujo, serhiy.storchaka, steve.dower, dstufft, xtreak
2018-09-26 11:18:54vstinnersetmessageid: <1537960734.72.0.545547206417.issue34806@psf.upfronthosting.co.za>
2018-09-26 11:18:54vstinnerlinkissue34806 messages
2018-09-26 11:18:54vstinnercreate