mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Brange merge
This commit is contained in:
commit
74d68135ad
16 changed files with 123 additions and 147 deletions
|
@ -33,6 +33,14 @@ class BuildExtTestCase(support.TempdirManager,
|
|||
site.USER_BASE = self.mkdtemp()
|
||||
build_ext.USER_BASE = site.USER_BASE
|
||||
|
||||
def tearDown(self):
|
||||
# Get everything back to normal
|
||||
if sys.version > "2.6":
|
||||
site.USER_BASE = self.old_user_base
|
||||
build_ext.USER_BASE = self.old_user_base
|
||||
|
||||
super(BuildExtTestCase, self).tearDown()
|
||||
|
||||
def _fixup_command(self, cmd):
|
||||
# When Python was build with --enable-shared, -L. is not good enough
|
||||
# to find the libpython<blah>.so. This is because regrtest runs it
|
||||
|
@ -99,14 +107,6 @@ class BuildExtTestCase(support.TempdirManager,
|
|||
code = code % self.tmp_dir
|
||||
assert_python_ok('-c', code)
|
||||
|
||||
def tearDown(self):
|
||||
# Get everything back to normal
|
||||
if sys.version > "2.6":
|
||||
site.USER_BASE = self.old_user_base
|
||||
build_ext.USER_BASE = self.old_user_base
|
||||
|
||||
super(BuildExtTestCase, self).tearDown()
|
||||
|
||||
def test_solaris_enable_shared(self):
|
||||
dist = Distribution({'name': 'xx'})
|
||||
cmd = build_ext(dist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue