mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
remove various dead version checks (closes #22349)
Patch from Thomas Kluyver.
This commit is contained in:
parent
8f0a1d0f28
commit
df0eb95b57
3 changed files with 16 additions and 45 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue