diff options
author | Alexandre Conrad <alexandre.conrad@gmail.com> | 2015-06-01 18:28:43 +0000 |
---|---|---|
committer | Alexandre Conrad <alexandre.conrad@gmail.com> | 2015-06-01 18:28:43 +0000 |
commit | b1893f0b6cdfd87525a279dfe9a361ad837ec039 (patch) | |
tree | 8d710c8e262329d3aecb9b8ae68732525f0c397a | |
parent | 9ea439a56365bb3a8bb834a2e68bb9e6f67a4ba3 (diff) | |
download | tox-b1893f0b6cdfd87525a279dfe9a361ad837ec039.tar.gz |
pass LANG variable to the test environment
-rw-r--r-- | CHANGELOG | 6 | ||||
-rw-r--r-- | tests/test_config.py | 1 | ||||
-rw-r--r-- | tox/config.py | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,9 @@ +unreleased +---------- + +- tox now passes the LANG variable from the tox invocation environment to the + test environment. + 2.0.1 ----------- diff --git a/tests/test_config.py b/tests/test_config.py index 526a795..1d91ace 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -716,6 +716,7 @@ class TestConfigTestEnv: assert "TMPDIR" in envconfig.passenv assert "PATH" in envconfig.passenv assert "PIP_INDEX_URL" in envconfig.passenv + assert "LANG" in envconfig.passenv assert "A123A" in envconfig.passenv assert "A123B" in envconfig.passenv diff --git a/tox/config.py b/tox/config.py index 5963f13..a5be23c 100644 --- a/tox/config.py +++ b/tox/config.py @@ -387,7 +387,7 @@ def tox_addoption(parser): help="list of X=Y lines with environment variable settings") def passenv(testenv_config, value): - passenv = set(["PATH", "PIP_INDEX_URL"]) + passenv = set(["PATH", "PIP_INDEX_URL", "LANG"]) # we ensure that tmp directory settings are passed on # we could also set it to the per-venv "envtmpdir" |