aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/test.py
diff options
context:
space:
mode:
authorLennart Regebro <regebro@gmail.com>2012-08-22 12:32:11 +0200
committerLennart Regebro <regebro@gmail.com>2012-08-22 12:32:11 +0200
commit9dc9fea4a5661e119f30f4cdec3ef99e46b5f919 (patch)
treefa0ff35c0a46713b41589fd6c1484f992577844f /setuptools/command/test.py
parente19d57773e1abb8d8f3f46417b07c1617d2d91ea (diff)
downloadexternal_python_setuptools-9dc9fea4a5661e119f30f4cdec3ef99e46b5f919.tar.gz
external_python_setuptools-9dc9fea4a5661e119f30f4cdec3ef99e46b5f919.tar.bz2
external_python_setuptools-9dc9fea4a5661e119f30f4cdec3ef99e46b5f919.zip
Issue #306: Even if 2to3 is used, we build in-place under Python 2.
--HG-- branch : distribute extra : rebase_source : db4a1a3059533ad0c894f12c31e3fe1c238f4292
Diffstat (limited to 'setuptools/command/test.py')
-rw-r--r--setuptools/command/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/test.py b/setuptools/command/test.py
index 59c10e84..e5cb9bb5 100644
--- a/setuptools/command/test.py
+++ b/setuptools/command/test.py
@@ -81,7 +81,7 @@ class test(Command):
def with_project_on_sys_path(self, func):
- if getattr(self.distribution, 'use_2to3', False):
+ if sys.version_info >= (3,) and getattr(self.distribution, 'use_2to3', False):
# If we run 2to3 we can not do this inplace:
# Ensure metadata is up-to-date