diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-10-18 11:34:51 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-10-18 11:34:51 (GMT) |
commit | 430fb63dd2c9bb0ed412fb61be1da9b130deab14 (patch) | |
tree | 3841e3454b6b02dfa0eb7d590222aef80c82b9af /Lib/distutils/tests/test_build_ext.py | |
parent | ccb3c0946c2140a3e5b0f04d137785c2ca1e071c (diff) | |
download | cpython-430fb63dd2c9bb0ed412fb61be1da9b130deab14.zip cpython-430fb63dd2c9bb0ed412fb61be1da9b130deab14.tar.gz cpython-430fb63dd2c9bb0ed412fb61be1da9b130deab14.tar.bz2 |
Merged revisions 75485 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75485 | tarek.ziade | 2009-10-18 11:28:26 +0200 (Sun, 18 Oct 2009) | 1 line
Changed distutils tests to avoid environment alteration
........
Diffstat (limited to 'Lib/distutils/tests/test_build_ext.py')
-rw-r--r-- | Lib/distutils/tests/test_build_ext.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index 7a27f34..ebbb399 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -35,7 +35,7 @@ class BuildExtTestCase(TempdirManager, # Note that we're making changes to sys.path super(BuildExtTestCase, self).setUp() self.tmp_dir = self.mkdtemp() - self.sys_path = sys.path[:] + self.sys_path = sys.path, sys.path[:] sys.path.append(self.tmp_dir) shutil.copy(_get_source_filename(), self.tmp_dir) if sys.version > "2.6": @@ -90,7 +90,8 @@ class BuildExtTestCase(TempdirManager, def tearDown(self): # Get everything back to normal support.unload('xx') - sys.path = self.sys_path + sys.path = self.sys_path[0] + sys.path[:] = self.sys_path[1] if sys.version > "2.6": import site site.USER_BASE = self.old_user_base |