Brange merge

This commit is contained in:
Éric Araujo 2011-06-17 19:38:38 +02:00
commit 74d68135ad
16 changed files with 123 additions and 147 deletions

View file

@ -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)