diff options
| author | Lennart Regebro <regebro@gmail.com> | 2012-08-22 12:32:11 +0200 |
|---|---|---|
| committer | Lennart Regebro <regebro@gmail.com> | 2012-08-22 12:32:11 +0200 |
| commit | 7acb30af4aab35e30470df25d2276c7486095330 (patch) | |
| tree | c4eb724185dccf015c2a007ad6786f00a980f99e /setuptools/command/test.py | |
| parent | d860ffc4edf943d1ad8c46363c10608c8d41d2a6 (diff) | |
| download | python-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.py | 2 |
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 |
