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 terry.reedy
Recipients brett.cannon, rhettinger, terry.reedy, yselivanov
Date 2015-09-04.19:54:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441396455.46.0.577114473097.issue24981@psf.upfronthosting.co.za>
In-reply-to
Content
The attached recurses one level deep in Lib. Catching UnicodeDecodeError on file read is needed at least for "test/test_source_encoding.py 'utf-8' codec can't decode byte 0xf0 in position 267: invalid continuation byte".  Catching "badxxx.py" is needed for several test/ modules.

This test may have found another hole:  It prints

 "C:/programs/Python35/Lib\distutils _msvccompiler.py None disallowed in expression list"

whereas

>>> compile(open('C:/programs/Python35/Lib\distutils\_msvccompiler.py').read(), '', 'exec')
<code object <module> at 0x00000000034A3F60, file "", line 8>
History
Date User Action Args
2015-09-04 19:54:15terry.reedysetrecipients: + terry.reedy, brett.cannon, rhettinger, yselivanov
2015-09-04 19:54:15terry.reedysetmessageid: <1441396455.46.0.577114473097.issue24981@psf.upfronthosting.co.za>
2015-09-04 19:54:15terry.reedylinkissue24981 messages
2015-09-04 19:54:15terry.reedycreate