summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorholger krekel <holger@merlinux.eu>2015-10-29 17:24:21 +0100
committerholger krekel <holger@merlinux.eu>2015-10-29 17:24:21 +0100
commitb26e9e56d8a3f5ec03507fa1de99a71544975741 (patch)
tree9053978eeb3de9fd5bf6c0524640c6a1016b61ff /tests
parenta2a7dc740529b250384753b27b4b286eb51a4850 (diff)
parent238dd2fcf52d87194815a34f14671fa0d26827c6 (diff)
downloadtox-b26e9e56d8a3f5ec03507fa1de99a71544975741.tar.gz
Merged in olliewalsh/tox (pull request #167)
Reorder the processing of testenv options.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_config.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 4bdba50..8b3fa1b 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -927,6 +927,18 @@ class TestConfigTestEnv:
assert argv[7][0] == config.homedir.join(".tox", "distshare")
assert argv[8][0] == conf.envlogdir
+ def test_substitution_notfound_issue246(tmpdir, newconfig):
+ config = newconfig("""
+ [testenv:py27]
+ setenv =
+ FOO={envbindir}
+ BAR={envsitepackagesdir}
+ """)
+ conf = config.envconfigs['py27']
+ env = conf.setenv
+ assert 'FOO' in env
+ assert 'BAR' in env
+
def test_substitution_positional(self, newconfig):
inisource = """
[testenv:py27]