Issue #231 resolved

Test: test_two_levels_deep fails when /tmp is symlink

Kubilay Kocak
created an issue

The following test fails when /tmp is a symlink:

lrwxr-xr-x 1 root wheel 8 Apr 14 2013 tmp@ -> /var/tmp

Testing setuptools 5.4.1, could not set issue Version correctly ("5.4.1" option doesn't exist)

======================================================================
FAIL: test_two_levels_deep (setuptools.tests.test_resources.NamespaceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/home/user/repos/freebsd/ports/devel/py-setuptools/work/setuptools-5.4.1/setuptools/tests/test_resources.py", line 619, in test_two_levels_deep
    os.path.join(self._tmpdir, "site-pkgs2", "pkg1", "pkg2")])
AssertionError: Lists differ: ['/var/tmp/tests-setuptools-xF... != ['/tmp/tests-setuptools-xFtkbJ...

First differing element 0:
/var/tmp/tests-setuptools-xFtkbJ/site-pkgs/pkg1/pkg2
/tmp/tests-setuptools-xFtkbJ/site-pkgs/pkg1/pkg2

First list contains 1 additional elements.
First extra element 2:
/tmp/tests-setuptools-xFtkbJ/site-pkgs/pkg1/pkg2

- ['/var/tmp/tests-setuptools-xFtkbJ/site-pkgs/pkg1/pkg2',
?   ----

+ ['/tmp/tests-setuptools-xFtkbJ/site-pkgs/pkg1/pkg2',
-  '/var/tmp/tests-setuptools-xFtkbJ/site-pkgs2/pkg1/pkg2',
-  '/tmp/tests-setuptools-xFtkbJ/site-pkgs/pkg1/pkg2']
+  '/tmp/tests-setuptools-xFtkbJ/site-pkgs2/pkg1/pkg2']
?                                         +
----------------------------------------------------------------------
Ran 135 tests in 1.947s

FAILED (failures=1, skipped=1)

Comments (1)

  1. Log in to comment