diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-09-06 21:24:12 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-09-06 21:24:12 (GMT) |
commit | df0eb95b571321e6d47057f34b3afc3894476d3f (patch) | |
tree | d77adfa243ccfc504670bd0652e4fcbfcd2fc22b /Lib/distutils/tests/test_build_ext.py | |
parent | 8f0a1d0f285536c9262d30b20f5f1becfe103309 (diff) | |
download | cpython-df0eb95b571321e6d47057f34b3afc3894476d3f.zip cpython-df0eb95b571321e6d47057f34b3afc3894476d3f.tar.gz cpython-df0eb95b571321e6d47057f34b3afc3894476d3f.tar.bz2 |
remove various dead version checks (closes #22349)
Patch from Thomas Kluyver.
Diffstat (limited to 'Lib/distutils/tests/test_build_ext.py')
-rw-r--r-- | Lib/distutils/tests/test_build_ext.py | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index e995866..b9f407f 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -31,12 +31,11 @@ class BuildExtTestCase(TempdirManager, self.tmp_dir = self.mkdtemp() self.sys_path = sys.path, sys.path[:] sys.path.append(self.tmp_dir) - if sys.version > "2.6": - import site - self.old_user_base = site.USER_BASE - site.USER_BASE = self.mkdtemp() - from distutils.command import build_ext - build_ext.USER_BASE = site.USER_BASE + import site + self.old_user_base = site.USER_BASE + site.USER_BASE = self.mkdtemp() + from distutils.command import build_ext + build_ext.USER_BASE = site.USER_BASE def test_build_ext(self): global ALREADY_TESTED @@ -84,11 +83,10 @@ class BuildExtTestCase(TempdirManager, support.unload('xx') sys.path = self.sys_path[0] sys.path[:] = self.sys_path[1] - if sys.version > "2.6": - import site - site.USER_BASE = self.old_user_base - from distutils.command import build_ext - build_ext.USER_BASE = self.old_user_base + import site + site.USER_BASE = self.old_user_base + from distutils.command import build_ext + build_ext.USER_BASE = self.old_user_base super(BuildExtTestCase, self).tearDown() def test_solaris_enable_shared(self): |