diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-10-18 12:41:30 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-10-18 12:41:30 (GMT) |
commit | f456a155c6c8008fa05d484dfb50c2fdf4366c82 (patch) | |
tree | 9eacde171899caf0188215a309632e697c6a390d /Lib/distutils/tests/test_bdist_dumb.py | |
parent | 6eb181a668793bc44e2d147d3e4d5daf2b3a3f6c (diff) | |
download | cpython-f456a155c6c8008fa05d484dfb50c2fdf4366c82.zip cpython-f456a155c6c8008fa05d484dfb50c2fdf4366c82.tar.gz cpython-f456a155c6c8008fa05d484dfb50c2fdf4366c82.tar.bz2 |
Merged revisions 75491 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r75491 | tarek.ziade | 2009-10-18 13:34:51 +0200 (Sun, 18 Oct 2009) | 9 lines
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_bdist_dumb.py')
-rw-r--r-- | Lib/distutils/tests/test_bdist_dumb.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_bdist_dumb.py b/Lib/distutils/tests/test_bdist_dumb.py index d2ea201..5e76809 100644 --- a/Lib/distutils/tests/test_bdist_dumb.py +++ b/Lib/distutils/tests/test_bdist_dumb.py @@ -19,16 +19,18 @@ setup(name='foo', version='0.1', py_modules=['foo'], class BuildDumbTestCase(support.TempdirManager, support.LoggingSilencer, + support.EnvironGuard, unittest.TestCase): def setUp(self): super(BuildDumbTestCase, self).setUp() self.old_location = os.getcwd() - self.old_sys_argv = sys.argv[:] + self.old_sys_argv = sys.argv, sys.argv[:] def tearDown(self): os.chdir(self.old_location) - sys.argv = self.old_sys_argv[:] + sys.argv = self.old_sys_argv[0] + sys.argv[:] = self.old_sys_argv[1] super(BuildDumbTestCase, self).tearDown() def test_simple_built(self): |