]> 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:53:24 +0000 (17:53 -0800)
committerGregory P. Smith <greg@krypto.org>
Fri, 23 Jan 2015 01:53:24 +0000 (17:53 -0800)
commit058fb7a884cf8b97174a566efb2f0ff82495bca5
tree7b0d8802c7a21085d63b7e901b96ee4488cb9a72
parent5da05491548ee0f323a38e0ee0b929bffd2ffcf5
parentfe7c5d6e4e94ca313e1dcfa5ecfba289489f0adf
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