summaryrefslogtreecommitdiff
path: root/tests/test_venv.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_venv.py')
-rw-r--r--tests/test_venv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_venv.py b/tests/test_venv.py
index 942888f..3faa16b 100644
--- a/tests/test_venv.py
+++ b/tests/test_venv.py
@@ -55,7 +55,7 @@ def test_create(monkeypatch, mocksession, newconfig):
l = mocksession._pcalls
assert len(l) >= 1
args = l[0].args
- assert "virtualenv" in str(args[1])
+ assert "virtualenv" == str(args[2])
if sys.platform != "win32":
# realpath is needed for stuff like the debian symlinks
assert py.path.local(sys.executable).realpath() \
@@ -347,7 +347,7 @@ def test_install_python3(tmpdir, newmocksession):
l = mocksession._pcalls
assert len(l) == 1
args = l[0].args
- assert str(args[1]).endswith('virtualenv')
+ assert str(args[2]) == 'virtualenv'
l[:] = []
action = mocksession.newaction(venv, "hello")
venv._install(["hello"], action=action)