summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIonel Maries Cristian <contact@ionelmc.ro>2014-03-25 02:59:17 +0200
committerIonel Maries Cristian <contact@ionelmc.ro>2014-03-25 02:59:17 +0200
commit9e66006ad8071b286b8f4dcaa02113987b14ef02 (patch)
treec3f3172388e55d728ed9954a2fb8d99eb95aa785 /tests
parent451f2911246c56f77bbd8eacddaabb74a36bdf40 (diff)
downloadtox-9e66006ad8071b286b8f4dcaa02113987b14ef02.tar.gz
Backed out changeset: 228071477cfb
Diffstat (limited to 'tests')
-rw-r--r--tests/test_venv.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_venv.py b/tests/test_venv.py
index 77181d1..0ac8f90 100644
--- a/tests/test_venv.py
+++ b/tests/test_venv.py
@@ -48,8 +48,11 @@ def test_create(monkeypatch, mocksession, newconfig):
l = mocksession._pcalls
assert len(l) >= 1
args = l[0].args
- assert str(args[0]).endswith("virtualenv")
+ assert "virtualenv" in str(args[1])
if sys.platform != "win32":
+ # realpath is needed for stuff like the debian symlinks
+ assert py.path.local(sys.executable).realpath() \
+ == py.path.local(args[0]).realpath()
#assert Envconfig.toxworkdir in args
assert venv.getcommandpath("easy_install", cwd=py.path.local())
interp = venv._getliveconfig().python
@@ -318,7 +321,7 @@ def test_install_python3(tmpdir, newmocksession):
l = mocksession._pcalls
assert len(l) == 1
args = l[0].args
- assert str(args[0]).endswith('virtualenv')
+ assert str(args[1]).endswith('virtualenv.py')
l[:] = []
action = mocksession.newaction(venv, "hello")
venv._install(["hello"], action=action)