diff options
Diffstat (limited to 'Lib/packaging/tests/test_command_build_ext.py')
| -rw-r--r-- | Lib/packaging/tests/test_command_build_ext.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/packaging/tests/test_command_build_ext.py b/Lib/packaging/tests/test_command_build_ext.py index 13bfeea5..8f61ce4 100644 --- a/Lib/packaging/tests/test_command_build_ext.py +++ b/Lib/packaging/tests/test_command_build_ext.py @@ -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) |
