[issue23925] test_cmd_line failing on PYTHONSTARTUP

Jamiel Almeida report at bugs.python.org
Mon Apr 13 03:18:14 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.

Running with:
$ 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
files: pythonrc
messages: 240581
nosy: slashfoo
priority: normal
severity: normal
status: open
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>
<http://bugs.python.org/issue23925>
_______________________________________


More information about the Python-bugs-list mailing list