diff options
| author | Hugo <hugovk@users.noreply.github.com> | 2020-01-08 19:10:11 +0200 |
|---|---|---|
| committer | Hugo <hugovk@users.noreply.github.com> | 2020-01-08 19:10:11 +0200 |
| commit | 796abd8dbec884cedf326cb5f85512a5d5648c4e (patch) | |
| tree | cacbbdc28822b519f87b679a8262687421d13c01 /setuptools/tests/test_develop.py | |
| parent | 7e97def47723303fafabe48b22168bbc11bb4821 (diff) | |
| download | python-setuptools-git-796abd8dbec884cedf326cb5f85512a5d5648c4e.tar.gz | |
Fix for Python 4: replace unsafe six.PY3 with PY2
Diffstat (limited to 'setuptools/tests/test_develop.py')
| -rw-r--r-- | setuptools/tests/test_develop.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index 00d4bd9a..792975fd 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -95,7 +95,7 @@ class TestDevelop: with io.open(fn) as init_file: init = init_file.read().strip() - expected = 'print("foo")' if six.PY3 else 'print "foo"' + expected = 'print "foo"' if six.PY2 else 'print("foo")' assert init == expected def test_console_scripts(self, tmpdir): @@ -161,7 +161,7 @@ class TestNamespaces: reason="https://github.com/pypa/setuptools/issues/851", ) @pytest.mark.skipif( - platform.python_implementation() == 'PyPy' and six.PY3, + platform.python_implementation() == 'PyPy' and not six.PY2, reason="https://github.com/pypa/setuptools/issues/1202", ) def test_namespace_package_importable(self, tmpdir): |
