summaryrefslogtreecommitdiff
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
commit7acb30af4aab35e30470df25d2276c7486095330 (patch)
treec4eb724185dccf015c2a007ad6786f00a980f99e /setuptools/command/test.py
parentd860ffc4edf943d1ad8c46363c10608c8d41d2a6 (diff)
downloadpython-setuptools-bitbucket-7acb30af4aab35e30470df25d2276c7486095330.tar.gz
Issue #306: Even if 2to3 is used, we build in-place under Python 2.
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