Terry J. Reedy added the comment:
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>
----------
nosy: +terry.reedy
Added file: http://bugs.python.org/file40359/temast.py
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24981>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com