Commits

Anonymous committed 5cc7ce3

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

Comments (0)

Files changed (1)

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:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.