[New-bugs-announce] [issue23925] test_cmd_line failing on PYTHONSTARTUP
report at bugs.python.org
Mon Apr 13 03:18:13 CEST 2015
New submission from Jamiel Almeida:
Running the test test_cmd_line with my current PYTHONSTARTUP set to the attached file breaks the test.
$ ./python.exe -m test test_cmd_line
Changing line 280 on Lib/test/test_cmd_line.py to include either -I or -E makes the error be different but still breaks the test.
adding a line with `del env['PYTHONSTARTUP']` before the subprocess works around the issue.
This leads me to believe that -E and -I aren't fully ignoring the environment variable.
$ PYTHONSTARTUP= ./python.exe -m test test_cmd_line
Also works around the issue.
Ran the following to build python and run tests
$ hg clone https://hg.python.org/cpython
$ cd cpython
$ ./configure --with-pydebug && make -j4
$ ./python -m test -j4
Currently on revision: 2a18f6b85da2 2015-04-12 | [rdmurray] #23464: remove JoinableQueue that was deprecated in 3.4.4.
components: Interpreter Core
title: test_cmd_line failing on PYTHONSTARTUP
versions: Python 3.5
Added file: http://bugs.python.org/file38911/pythonrc
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce