diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-24 20:01:32 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-24 20:01:32 -0500 |
commit | 951a3b9df51c1c46a39753dc6f2854ea18f45729 (patch) | |
tree | a0c2059e03be5e047c3c6b671e1850508c0ac144 /setuptools | |
parent | 0861296a63b3fafd059759840fb62ba12d4e6adc (diff) | |
download | external_python_setuptools-951a3b9df51c1c46a39753dc6f2854ea18f45729.tar.gz external_python_setuptools-951a3b9df51c1c46a39753dc6f2854ea18f45729.tar.bz2 external_python_setuptools-951a3b9df51c1c46a39753dc6f2854ea18f45729.zip |
Use if clause.
Diffstat (limited to 'setuptools')
-rw-r--r-- | setuptools/tests/test_develop.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index ec655462..35f3ea25 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -10,6 +10,7 @@ import pytest from setuptools.command.develop import develop from setuptools.dist import Distribution from . import contexts +from setuptools.compat import PY3 SETUP_PY = """\ @@ -81,7 +82,6 @@ class TestDevelopTest: fn = os.path.join(path, 'foo', '__init__.py') with io.open(fn) as init_file: init = init_file.read().strip() - if sys.version < "3": - assert init == 'print "foo"' - else: - assert init == 'print("foo")' + + expected = 'print("foo")' if PY3 else 'print "foo"' + assert init == expected |