summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG6
-rw-r--r--tests/test_config.py1
-rw-r--r--tox/config.py2
3 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 8c1b59d..003f386 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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"