aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-17 12:25:31 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-05-17 12:25:31 -0400
commit8567ca65adbf927a0af5c9b7314688dfbc46ab66 (patch)
tree345ee8e9d0eaa61a64786215cf6bda53abd5b5e5 /setuptools/tests/test_resources.py
parent3c85da71f22c43041e7475b01b4683f22fc3a618 (diff)
downloadexternal_python_setuptools-8567ca65adbf927a0af5c9b7314688dfbc46ab66.tar.gz
external_python_setuptools-8567ca65adbf927a0af5c9b7314688dfbc46ab66.tar.bz2
external_python_setuptools-8567ca65adbf927a0af5c9b7314688dfbc46ab66.zip
Use PY3 and PY2 throughout
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r--setuptools/tests/test_resources.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index c9fcf76c..443905cc 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -15,7 +15,7 @@ from pkg_resources import (parse_requirements, VersionConflict, parse_version,
from setuptools.command.easy_install import (get_script_header, is_sh,
nt_quote_arg)
-from setuptools.compat import StringIO, iteritems
+from setuptools.compat import StringIO, iteritems, PY3
try:
frozenset
@@ -522,8 +522,7 @@ class ScriptHeaderTests(TestCase):
def test_get_script_header_jython_workaround(self):
# This test doesn't work with Python 3 in some locales
- if (sys.version_info >= (3,) and os.environ.get("LC_CTYPE")
- in (None, "C", "POSIX")):
+ if PY3 and os.environ.get("LC_CTYPE") in (None, "C", "POSIX"):
return
class java: