Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
temporarily remove OS NAME, issue #23
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed Oct 17, 2015
1 parent 135d095 commit 919dde1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion buildtimetrend/test/travis_test.py
Expand Up @@ -506,6 +506,14 @@ def test_load_build_matrix_env_vars_parameters(self):
reset_travis_vars = True
os.environ["TRAVIS"] = "true"

# temporarily remove OS VERSION
if "TRAVIS_OS_NAME" in os.environ:
reset_os = True
copy_os = os.environ["TRAVIS_OS_NAME"]
del os.environ["TRAVIS_OS_NAME"]
else:
reset_os = False

# temporarily remove PYTHON VERSION
if "TRAVIS_PYTHON_VERSION" in os.environ:
reset_python_version = True
Expand Down Expand Up @@ -553,7 +561,9 @@ def test_load_build_matrix_env_vars_parameters(self):
# reset test Travis vars
if reset_travis_vars:
del os.environ["TRAVIS"]
else:

# reset removed os name
if reset_os:
os.environ["TRAVIS_OS_NAME"] = copy_os

# reset removed python version
Expand Down

0 comments on commit 919dde1

Please sign in to comment.