diff options
author | Stefan Scherfke <stefan@sofa-rockers.org> | 2014-06-25 09:41:37 +0200 |
---|---|---|
committer | Stefan Scherfke <stefan@sofa-rockers.org> | 2014-06-25 09:41:37 +0200 |
commit | 2b04e91cfc046b67ee5d2fc3b32357022b6cde37 (patch) | |
tree | f6ac4b83d8c44c6cf6392e2f2c874e5879f5a73d /tests | |
parent | bfb9423685f02a98801981a60720e21dce694b67 (diff) | |
download | tox-2b04e91cfc046b67ee5d2fc3b32357022b6cde37.tar.gz |
Add support for PyPy3 (env "pypy3").
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index ff743c4..bc5a683 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -554,7 +554,7 @@ class TestConfigTestEnv: envconfig = config.envconfigs['python'] assert envconfig.envpython == envconfig.envbindir.join("python") - @pytest.mark.parametrize("bp", ["jython", "pypy"]) + @pytest.mark.parametrize("bp", ["jython", "pypy", "pypy3"]) def test_envbindir_jython(self, tmpdir, newconfig, bp): config = newconfig(""" [testenv] @@ -916,7 +916,7 @@ class TestGlobalOptions: assert str(env.basepython) == sys.executable def test_default_environments(self, tmpdir, newconfig, monkeypatch): - envs = "py26,py27,py31,py32,py33,jython,pypy" + envs = "py26,py27,py31,py32,py33,py34,jython,pypy,pypy3" inisource = """ [tox] envlist = %s @@ -928,8 +928,8 @@ class TestGlobalOptions: env = config.envconfigs[name] if name == "jython": assert env.basepython == "jython" - elif name == "pypy": - assert env.basepython == "pypy" + elif name.startswith("pypy"): + assert env.basepython == name else: assert name.startswith("py") bp = "python%s.%s" %(name[2], name[3]) |