Author ncoghlan
Recipients Decorater, eric.snow, ncoghlan, serhiy.storchaka, vstinner
Date 2017-11-26.04:42:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511671345.07.0.213398074469.issue32096@psf.upfronthosting.co.za>
In-reply-to
Content
Looking more closely at the code, I've realised Victor's right - there's no way for Py_DecodeLocale() to accidentally trigger an attempt to import the "encodings" module.

Instead, the error is likely coming from the init_sys_streams step towards the end of the initialization process. The way the embedded test cases are currently being run unfortunately truncated that traceback.

Rather than trying to improve the test case error reporting under the scope of this issue, I've instead filed https://bugs.python.org/issue32136 to cover factoring the runtime embedding tests out to their own test file.
History
Date User Action Args
2017-11-26 04:42:25ncoghlansetrecipients: + ncoghlan, vstinner, eric.snow, serhiy.storchaka, Decorater
2017-11-26 04:42:25ncoghlansetmessageid: <1511671345.07.0.213398074469.issue32096@psf.upfronthosting.co.za>
2017-11-26 04:42:25ncoghlanlinkissue32096 messages
2017-11-26 04:42:24ncoghlancreate