]> granicus.if.org Git - python/commit
Skip some tests that require a subinterpreter launched with -E or -I when the
authorGregory P. Smith <greg@krypto.org>
Wed, 4 Feb 2015 09:04:31 +0000 (01:04 -0800)
committerGregory P. Smith <greg@krypto.org>
Wed, 4 Feb 2015 09:04:31 +0000 (01:04 -0800)
commit8f2fae1e7d7142a280a23bb9428d0aaddbb518c5
treef53026d0eb093df250a19cd2dd8d80ba5587ebed
parenta7559c04e09980a3ae468a996609805dfe413ca4
parentb9a3dd9dfb780b9691f8a1859fd67cf9eadbd2d0
Skip some tests that require a subinterpreter launched with -E or -I when the
interpreter under test is being run in an environment that requires the use of
environment variables such as PYTHONHOME in order to function at all.

Adds a test.script_helper.interpreter_requires_environment() function
to be used with @unittest.skipIf on stdlib test methods requiring this.
Lib/test/script_helper.py
Lib/test/test_cmd_line.py
Lib/test/test_script_helper.py
Lib/test/test_tracemalloc.py