[issue30108] test_site modifies sys.path
STINNER Victor
report at bugs.python.org
Wed Apr 19 20:36:02 EDT 2017
STINNER Victor added the comment:
Ah, I reproduced the bug:
$ rmdir ~/.local/lib/python3.7/site-packages; ./python -m test test_site
Run tests sequentially
0:00:00 [1/1] test_site
Warning -- sys.path was modified by test_site
Before: (140302199734024, ['', '/home/haypo/prog/GIT/perf', '/usr/local/lib/python37.zip', '/home/haypo/prog/python/master/Lib', '/home/haypo/prog/python/master/build/lib.linux-x86_64-3.7'], ['', '/home/haypo/prog/GIT/perf', '/usr/local/lib/python37.zip', '/home/haypo/prog/python/master/Lib', '/home/haypo/prog/python/master/build/lib.linux-x86_64-3.7'])
After: (140302199734024, ['', '/home/haypo/prog/GIT/perf', '/usr/local/lib/python37.zip', '/home/haypo/prog/python/master/Lib', '/home/haypo/prog/python/master/build/lib.linux-x86_64-3.7'], ['', '/home/haypo/prog/GIT/perf', '/usr/local/lib/python37.zip', '/home/haypo/prog/python/master/Lib', '/home/haypo/prog/python/master/build/lib.linux-x86_64-3.7', '/home/haypo/.local/lib/python3.7/site-packages'])
test_site failed (env changed)
1 test altered the execution environment:
test_site
Total duration: 229 ms
Tests result: SUCCESS
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30108>
_______________________________________
More information about the Python-bugs-list
mailing list