From 1237522b992f84cf674833f0745b144874db817c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 12 Jul 2014 09:12:38 -0400 Subject: 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. --- setuptools/tests/test_resources.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setuptools') 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 -- cgit v1.2.1