diff options
author | Éric Araujo <merwok@netwok.org> | 2011-06-17 19:38:38 +0200 |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-06-17 19:38:38 +0200 |
commit | 74d68135adffce55cf96e62c0c71ab72945a7753 (patch) | |
tree | 152618e1cf9d7645e20e19939f5cf0ad5974afa9 /Lib/packaging/tests/test_command_build_ext.py | |
parent | 92cafb85dd3143baa7016475b3895f5491fe451f (diff) | |
parent | ed5d2f131083f16ab3d305ccc6f58c66f70f1f75 (diff) | |
download | cpython-74d68135adffce55cf96e62c0c71ab72945a7753.tar.gz cpython-74d68135adffce55cf96e62c0c71ab72945a7753.zip |
Brange merge
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 13bfeea5d92..8f61ce42e4d 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) |