Commits

holger krekel  committed 714d84b

fix issue118: tests should check realpath() on both sides. Thanks Barry Warsaw.

  • Participants
  • Parent commits df42ff8

Comments (0)

Files changed (2)

   on "--set-home" for now.  Should re-establish the old behaviour
   when no option is given.
 
+- fix issue118: correctly have two tests use realpath(). Thanks Barry
+  Warsaw.
+
 1.6.0
 -----------------
 

File tests/test_venv.py

     venv = VirtualEnv(config.envconfigs['python'], session=mocksession)
     interp = venv.getsupportedinterpreter()
     # realpath needed for debian symlinks
-    assert interp == py.path.local(sys.executable).realpath()
+    assert py.path.local(interp).realpath() \
+      == py.path.local(sys.executable).realpath()
     monkeypatch.setattr(sys, 'platform', "win32")
     monkeypatch.setattr(venv.envconfig, 'basepython', 'jython')
     py.test.raises(tox.exception.UnsupportedInterpreter,
     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() == args[0]
+        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