Commit 69f622592c50e9831bb792c2c7951f78d79cc098
1 parent
77e1bab8
Fixed problem in unit test with VHEFITS environment variable
Showing
1 changed file
with
9 additions
and
0 deletions
test/test_python_cscripts.py
| ... | ... | @@ -166,6 +166,15 @@ def test(installed=False, debug=False): |
| 166 | 166 | ver = sys.version.split()[0] |
| 167 | 167 | if ver >= '2.6.0': |
| 168 | 168 | |
| 169 | + # Check for VHEFITS environment variable | |
| 170 | + if 'VHEFITS' in os.environ: | |
| 171 | + | |
| 172 | + # If existent unset for the test cases | |
| 173 | + # Since Python is executed in a subprocess | |
| 174 | + # this will not impact the environment variable in | |
| 175 | + # the parent shell | |
| 176 | + del os.environ['VHEFITS'] | |
| 177 | + | |
| 169 | 178 | # Allocate test suites |
| 170 | 179 | suite_csfindobs = test_csfindobs.Test() |
| 171 | 180 | suite_csiactcopy = test_csiactcopy.Test() | ... | ... |