Commits

Marc Abramowitz committed 5cc7ce3

Fix test_config.py failures on OS X 10.6.8, caused by symlinked paths in
/tmp

  • Participants
  • Parent commits 73f910d

Comments (0)

Files changed (1)

File tests/test_config.py

             [testenv:py1]
         """)
         assert len(config.envconfigs) == 1
-        assert config.toxworkdir == tmpdir.join(".tox")
+        assert config.toxworkdir.realpath() == tmpdir.join(".tox").realpath()
         assert config.envconfigs['py1'].basepython == sys.executable
         assert config.envconfigs['py1'].deps == []
 
 class TestConfigPackage:
     def test_defaults(self, tmpdir, newconfig):
         config = newconfig([], "")
-        assert config.setupdir == tmpdir
-        assert config.toxworkdir == tmpdir.join(".tox")
+        assert config.setupdir.realpath() == tmpdir.realpath()
+        assert config.toxworkdir.realpath() == tmpdir.join(".tox").realpath()
         envconfig = config.envconfigs['python']
         assert envconfig.args_are_paths
         assert not envconfig.recreate
     def test_defaults_changed_dir(self, tmpdir, newconfig):
         tmpdir.mkdir("abc").chdir()
         config = newconfig([], "")
-        assert config.setupdir == tmpdir
-        assert config.toxworkdir == tmpdir.join(".tox")
+        assert config.setupdir.realpath() == tmpdir.realpath()
+        assert config.toxworkdir.realpath() == tmpdir.join(".tox").realpath()
 
     def test_project_paths(self, tmpdir, newconfig):
         config = newconfig("""
         """
         conf = newconfig([], inisource).envconfigs['python']
         assert conf.changedir.basename == 'testing'
-        assert conf.changedir.dirpath() == tmpdir
+        assert conf.changedir.dirpath().realpath() == tmpdir.realpath()
 
 
 class TestGlobalOptions: