diff options
author | Éric Araujo <merwok@netwok.org> | 2011-09-17 01:31:51 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-09-17 01:31:51 (GMT) |
commit | 7724a6c10c56a1b14b4933de368e672eae840f47 (patch) | |
tree | 1b3bd60ab9b79bd018cbc942a8e12140b2e18576 /Lib/packaging/tests/test_command_build_ext.py | |
parent | 37ccd6f794539e0678b7a7ad938e571cc73e106c (diff) | |
download | cpython-7724a6c10c56a1b14b4933de368e672eae840f47.zip cpython-7724a6c10c56a1b14b4933de368e672eae840f47.tar.gz cpython-7724a6c10c56a1b14b4933de368e672eae840f47.tar.bz2 |
Packaging cleanup: remove conditionals for < 2.6 support.
PEP 370 features and sys.dont_write_bytecode are always available
in 3.3; the distutils2 backport still has the conditionals.
I also renamed an internal misnamed method and fixed a few things
(“packaging2” name, stray print, unused import, fd leak).
Diffstat (limited to 'Lib/packaging/tests/test_command_build_ext.py')
-rw-r--r-- | Lib/packaging/tests/test_command_build_ext.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/packaging/tests/test_command_build_ext.py b/Lib/packaging/tests/test_command_build_ext.py index 59d09bf..52dfa31 100644 --- a/Lib/packaging/tests/test_command_build_ext.py +++ b/Lib/packaging/tests/test_command_build_ext.py @@ -18,18 +18,13 @@ class BuildExtTestCase(support.TempdirManager, support.LoggingCatcher, unittest.TestCase): def setUp(self): - # Create a simple test environment - # Note that we're making changes to sys.path super(BuildExtTestCase, self).setUp() self.tmp_dir = self.mkdtemp() self.old_user_base = site.USER_BASE site.USER_BASE = self.mkdtemp() def tearDown(self): - # Get everything back to normal - if sys.version > "2.6": - site.USER_BASE = self.old_user_base - + site.USER_BASE = self.old_user_base super(BuildExtTestCase, self).tearDown() def test_build_ext(self): @@ -94,7 +89,6 @@ class BuildExtTestCase(support.TempdirManager, # make sure we get some library dirs under solaris self.assertGreater(len(cmd.library_dirs), 0) - @unittest.skipIf(sys.version < '2.6', 'requires Python 2.6 or higher') def test_user_site(self): dist = Distribution({'name': 'xx'}) cmd = build_ext(dist) |