From 85772e55f2afa55bb248ad656b35191e61ed0bb6 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 9 Aug 2016 00:53:56 +0200 Subject: [PATCH] Unset VHEFITS environment variable during cscripts unit testing --- test/test_python_cscripts.py | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/test/test_python_cscripts.py b/test/test_python_cscripts.py index a5ab2c0..9bb02ae 100755 --- a/test/test_python_cscripts.py +++ b/test/test_python_cscripts.py @@ -166,6 +166,14 @@ def test(installed=False, debug=False): ver = sys.version.split()[0] if ver >= '2.6.0': + # Check for VHEFITS environment variable + if 'VHEFITS' in os.environ: + + # If environment variable exists then unset for the test cases. + # Since Python is executed in a subprocess this will not impact + # the environment variable in the parent shell. + del os.environ['VHEFITS'] + # Allocate test suites suite_csfindobs = test_csfindobs.Test() suite_csiactcopy = test_csiactcopy.Test() -- libgit2 0.21.4