summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_bdist_rpm.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-10-18 11:34:51 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-10-18 11:34:51 (GMT)
commit430fb63dd2c9bb0ed412fb61be1da9b130deab14 (patch)
tree3841e3454b6b02dfa0eb7d590222aef80c82b9af /Lib/distutils/tests/test_bdist_rpm.py
parentccb3c0946c2140a3e5b0f04d137785c2ca1e071c (diff)
downloadcpython-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_bdist_rpm.py')
-rw-r--r--Lib/distutils/tests/test_bdist_rpm.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_bdist_rpm.py b/Lib/distutils/tests/test_bdist_rpm.py
index c271567..2aa257f 100644
--- a/Lib/distutils/tests/test_bdist_rpm.py
+++ b/Lib/distutils/tests/test_bdist_rpm.py
@@ -29,11 +29,12 @@ class BuildRpmTestCase(support.TempdirManager,
def setUp(self):
super(BuildRpmTestCase, 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(BuildRpmTestCase, self).tearDown()
def test_quiet(self):