From bc9ec216eb133fd0b593dfd2661878f9c020bc7a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 7 Feb 2016 09:38:18 -0500 Subject: Fix syntax errors on Python 2 --- pkg_resources/tests/test_resources.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1