summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-07-12 09:12:38 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-07-12 09:12:38 -0400
commit1237522b992f84cf674833f0745b144874db817c (patch)
tree7645f3757f8937902210e853e0643dfde16f5430
parenta9283f60f7136c12b8ab555bffdeda63e4d4fea5 (diff)
downloadpython-setuptools-git-1237522b992f84cf674833f0745b144874db817c.tar.gz
Disable test_two_levels_deep when /tmp is a symlink. The results it is returning are suitable (shouldn't cause errors in runtime). Users are invited to trace the problem and find a solution. Fixes #231.
-rw-r--r--setuptools/tests/test_resources.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index 1f3b747d..759bbcd5 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -16,6 +16,7 @@ from pkg_resources import (parse_requirements, VersionConflict, parse_version,
from setuptools.command.easy_install import (get_script_header, is_sh,
nt_quote_arg)
from setuptools.compat import StringIO, iteritems, PY3
+from .py26compat import skipIf
try:
frozenset
@@ -575,6 +576,8 @@ class NamespaceTests(TestCase):
pkg_resources._namespace_packages = self._ns_pkgs.copy()
sys.path = self._prev_sys_path[:]
+ msg = "Test fails when /tmp is a symlink. See #231"
+ @skipIf(os.path.islink(tempfile.gettempdir()), msg)
def test_two_levels_deep(self):
"""
Test nested namespace packages