[New-bugs-announce] [issue12401] unset PYTHON* environment variables when running tests

Henry Precheur report at bugs.python.org
Fri Jun 24 23:57:56 CEST 2011


New submission from Henry Precheur <henry at precheur.org>:

"make test" calls Python with the -E option which ignore the PYTHON*
environment variables, but Python sub-processes aren't necessarily called with the -E options. For example test_displayhook_unencodable in test_cmd_line. This created problems with my own PYTHONSTARTUP script.

I see 2 solutions to this problems:

1. Fix the tests that might be affected by such problems, by adding the -E option everywhere needed.
2. Fix the Makefile and unset all the PYTHON* environment variables in it.

I think that solution #2 is better. Fixing the tests can be done today, but the authors of future tests might not be aware of this issue. By fixing the Makefile we prevent this problem to occur again in the future.

----------
components: Tests
messages: 138993
nosy: henry.precheur
priority: normal
severity: normal
status: open
title: unset PYTHON* environment variables when running tests
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12401>
_______________________________________


More information about the New-bugs-announce mailing list