summaryrefslogtreecommitdiff
path: root/tests/test_interpreters.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_interpreters.py')
-rw-r--r--tests/test_interpreters.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/test_interpreters.py b/tests/test_interpreters.py
index a6997e6..1c5a77d 100644
--- a/tests/test_interpreters.py
+++ b/tests/test_interpreters.py
@@ -3,13 +3,11 @@ import os
import pytest
from tox.interpreters import * # noqa
-from tox._config import get_plugin_manager
@pytest.fixture
def interpreters():
- pm = get_plugin_manager()
- return Interpreters(hook=pm.hook)
+ return Interpreters()
@pytest.mark.skipif("sys.platform != 'win32'")
@@ -30,8 +28,8 @@ def test_locate_via_py(monkeypatch):
assert locate_via_py('3', '2') == sys.executable
-def test_tox_get_python_executable():
- p = tox_get_python_executable(sys.executable)
+def test_find_executable():
+ p = find_executable(sys.executable)
assert p == py.path.local(sys.executable)
for ver in [""] + "2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3".split():
name = "python%s" % ver
@@ -44,7 +42,7 @@ def test_tox_get_python_executable():
else:
if not py.path.local.sysfind(name):
continue
- p = tox_get_python_executable(name)
+ p = find_executable(name)
assert p
popen = py.std.subprocess.Popen([str(p), '-V'],
stderr=py.std.subprocess.PIPE)
@@ -57,7 +55,7 @@ def test_find_executable_extra(monkeypatch):
def sysfind(x):
return "hello"
monkeypatch.setattr(py.path.local, "sysfind", sysfind)
- t = tox_get_python_executable("qweqwe")
+ t = find_executable("qweqwe")
assert t == "hello"