[Pytest-commit] commit/tox: aconrad: pass LANG variable to the test environment

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Jun 3 13:25:46 CEST 2015


1 new commit in tox:

https://bitbucket.org/hpk42/tox/commits/c1c7775d628e/
Changeset:   c1c7775d628e
User:        aconrad
Date:        2015-06-01 18:28:43+00:00
Summary:     pass LANG variable to the test environment
Affected #:  3 files

diff -r 7b318dbb8376844d469588c1fc8a100f389e513d -r c1c7775d628e30e051a849fd775b8e56f4a168e5 CHANGELOG
--- 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 -r 7b318dbb8376844d469588c1fc8a100f389e513d -r c1c7775d628e30e051a849fd775b8e56f4a168e5 tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -716,6 +716,7 @@
             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 -r 7b318dbb8376844d469588c1fc8a100f389e513d -r c1c7775d628e30e051a849fd775b8e56f4a168e5 tox/config.py
--- a/tox/config.py
+++ b/tox/config.py
@@ -387,7 +387,7 @@
         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"

Repository URL: https://bitbucket.org/hpk42/tox/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the pytest-commit mailing list