From b1893f0b6cdfd87525a279dfe9a361ad837ec039 Mon Sep 17 00:00:00 2001 From: Alexandre Conrad Date: Mon, 1 Jun 2015 18:28:43 +0000 Subject: pass LANG variable to the test environment --- CHANGELOG | 6 ++++++ tests/test_config.py | 1 + tox/config.py | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1