summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-02-07 09:38:18 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-02-07 09:38:18 -0500
commitbc9ec216eb133fd0b593dfd2661878f9c020bc7a (patch)
tree9abfb79da4a59ab68a747e4893fc08ef72cc1636 /pkg_resources
parent64378483fd433d4c7ca6a50c588b9bcb297de392 (diff)
downloadpython-setuptools-git-bc9ec216eb133fd0b593dfd2661878f9c020bc7a.tar.gz
Fix syntax errors on Python 2
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/tests/test_resources.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index 542795cf..efaf8db4 100644
--- a/pkg_resources/tests/test_resources.py
+++ b/pkg_resources/tests/test_resources.py
@@ -618,7 +618,8 @@ class TestNamespaces:
a natural tempdir.
"""
if not hasattr(os, 'symlink'):
- return str(tmpdir)
+ yield str(tmpdir)
+ return
link_name = str(tmpdir) + '-linked'
os.symlink(str(tmpdir), link_name)