]> 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 08:59:40 +0000 (00:59 -0800)
committerGregory P. Smith <greg@krypto.org>
Wed, 4 Feb 2015 08:59:40 +0000 (00:59 -0800)
commitb9a3dd9dfb780b9691f8a1859fd67cf9eadbd2d0
treec186f9c50fd386da260b0c345550df9f0a65ac81
parent17d87f8ae42122025b5ce41230df6ba9e042ec40
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 private 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