diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-17 12:25:31 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-17 12:25:31 -0400 |
commit | 8567ca65adbf927a0af5c9b7314688dfbc46ab66 (patch) | |
tree | 345ee8e9d0eaa61a64786215cf6bda53abd5b5e5 /setuptools/tests/test_test.py | |
parent | 3c85da71f22c43041e7475b01b4683f22fc3a618 (diff) | |
download | python-setuptools-git-8567ca65adbf927a0af5c9b7314688dfbc46ab66.tar.gz |
Use PY3 and PY2 throughout
Diffstat (limited to 'setuptools/tests/test_test.py')
-rw-r--r-- | setuptools/tests/test_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py index f85123b0..df92085e 100644 --- a/setuptools/tests/test_test.py +++ b/setuptools/tests/test_test.py @@ -10,7 +10,7 @@ import tempfile import unittest from distutils.errors import DistutilsError -from setuptools.compat import StringIO +from setuptools.compat import StringIO, PY2 from setuptools.command.test import test from setuptools.command import easy_install as easy_install_pkg from setuptools.dist import Distribution @@ -34,7 +34,7 @@ except ImportError: __path__ = extend_path(__path__, __name__) """ # Make sure this is Latin-1 binary, before writing: -if sys.version_info < (3,): +if PY2: NS_INIT = NS_INIT.decode('UTF-8') NS_INIT = NS_INIT.encode('Latin-1') |