diff options
Diffstat (limited to 'Lib/packaging/tests/test_command_build_ext.py')
| -rw-r--r-- | Lib/packaging/tests/test_command_build_ext.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Lib/packaging/tests/test_command_build_ext.py b/Lib/packaging/tests/test_command_build_ext.py index d8936d4..930a38f 100644 --- a/Lib/packaging/tests/test_command_build_ext.py +++ b/Lib/packaging/tests/test_command_build_ext.py @@ -37,6 +37,16 @@ class BuildExtTestCase(support.TempdirManager, site.USER_BASE = self.mkdtemp() build_ext.USER_BASE = site.USER_BASE + def tearDown(self): + # Get everything back to normal + unload('xx') + sys.path.remove(self.tmp_dir) + 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 @@ -103,16 +113,6 @@ class BuildExtTestCase(support.TempdirManager, self.assertTrue(isinstance(xx.Null(), xx.Null)) self.assertTrue(isinstance(xx.Str(), xx.Str)) - def tearDown(self): - # Get everything back to normal - unload('xx') - sys.path.remove(self.tmp_dir) - 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) |
