diff options
author | holger krekel <holger@merlinux.eu> | 2015-06-18 16:07:12 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2015-06-18 16:07:12 +0200 |
commit | 0c82e9c32d2f0b1209967f774325f0f780f83e97 (patch) | |
tree | 483d1430c17837a114dc1fa641d5319cd51510ee /tests | |
parent | c29c60b2d5d422b50882c0788e17a8f6d7fe1f56 (diff) | |
download | tox-0c82e9c32d2f0b1209967f774325f0f780f83e97.tar.gz |
allow all env variables during installation of dependencies
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_venv.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_venv.py b/tests/test_venv.py index d00b655..37b0f50 100644 --- a/tests/test_venv.py +++ b/tests/test_venv.py @@ -510,6 +510,7 @@ class TestVenvTest: def test_env_variables_added_to_pcall(tmpdir, mocksession, newconfig, monkeypatch): pkg = tmpdir.ensure("package.tar.gz") monkeypatch.setenv("X123", "123") + monkeypatch.setenv("YY", "456") config = newconfig([], """ [testenv:python] commands=python -V @@ -533,9 +534,12 @@ def test_env_variables_added_to_pcall(tmpdir, mocksession, newconfig, monkeypatc assert env['ENV_VAR'] == 'value' assert env['VIRTUAL_ENV'] == str(venv.path) assert env['X123'] == "123" + # all env variables are passed for installation + assert l[0].env["YY"] == "456" + assert "YY" not in l[1].env assert set(["ENV_VAR", "VIRTUAL_ENV", "PYTHONHASHSEED", "X123", "PATH"])\ - .issubset(env) + .issubset(l[1].env) # for e in os.environ: # assert e in env |