]> granicus.if.org Git - python/commit
Only pass -E to the child interpreter if our interpreter was running in that
authorGregory P. Smith <greg@krypto.org>
Fri, 23 Jan 2015 01:33:28 +0000 (17:33 -0800)
committerGregory P. Smith <greg@krypto.org>
Fri, 23 Jan 2015 01:33:28 +0000 (17:33 -0800)
commitfe7c5d6e4e94ca313e1dcfa5ecfba289489f0adf
tree8a3e4936b5837509e538fe2d1a0b6a2760c54159
parent2b77c5467f376257ae22cbfbcb3a0e5e6349e92d
Only pass -E to the child interpreter if our interpreter was running in that
mode.  Explicitly remove the PYTHONFAULTHANDLER environment variable before
launching a child interpreter when its presence would impact the test (the
reason -E was being used in the first place).

This enables running the test in an environment where other Python environment
variables must be set in order for things to run (such as using PYTHONHOME to
tell an embedded interpreter where it should think it lives).
Lib/test/test_faulthandler.py