diff options
Diffstat (limited to 'tests/test_config.py')
| -rw-r--r-- | tests/test_config.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 40d6941..9e088d4 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,4 +1,5 @@ import tox +import pytest import os, sys from textwrap import dedent @@ -362,14 +363,18 @@ class TestConfigTestEnv: envconfig = config.envconfigs['python'] assert envconfig.envpython == envconfig.envbindir.join("python") - def test_envbindir_jython(self, tmpdir, newconfig): + @pytest.mark.parametrize("bp", ["jython", "pypy"]) + def test_envbindir_jython(self, tmpdir, newconfig, bp): config = newconfig(""" [testenv] - basepython=jython - """) + basepython=%s + """ % bp) assert len(config.envconfigs) == 1 envconfig = config.envconfigs['python'] - assert envconfig.envpython == envconfig.envbindir.join("jython") + # on win32 and linux virtualenv uses "bin" for pypy/jython + assert envconfig.envbindir.basename == "bin" + if bp == "jython": + assert envconfig.envpython == envconfig.envbindir.join(bp) def test_setenv_overrides(self, tmpdir, newconfig): config = newconfig(""" |
