taucmdr.tests.test_launcher module¶
Tests that the tau launcher isolates TAU Commander from the user’s Python environment.
By default they test the launcher installed next to the running interpreter. Set __TAUCMDR_TEST_LAUNCHER__
to test another installation’s launcher.
- class taucmdr.tests.test_launcher.LauncherTest(methodName='runTest')[source]¶
Bases:
TestCaseTests of the
taulauncher script, run as a subprocess in a hostile environment.- _classSetupFailed = False¶
- _class_cleanups = []¶
- _hostile_env(shadow=True, python_home=True)[source]¶
Return an environment that would break an unisolated TAU Commander.
- classmethod setUpClass()[source]¶
Hook method for setting up class fixture before running tests in the class.
- test_backstop_reexecs_isolated()[source]¶
Running
python -m taucmdrwithout the launcher restarts Python in isolated mode.
- test_environment_reaches_children()[source]¶
Programs started by tau see the user’s Python variables and the launcher’s path.