summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-05-07 23:11:34 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-05-07 23:11:34 (GMT)
commit9c3d1be5d3b63169a95210b9dc95fc3565f7e330 (patch)
treec2bbf8d6e4937826bdcd43a0be0e827ed1dec1ab /Lib/distutils
parent86ede0efb90a6b58d71f379cec1fd5078c8c6e22 (diff)
downloadcpython-9c3d1be5d3b63169a95210b9dc95fc3565f7e330.zip
cpython-9c3d1be5d3b63169a95210b9dc95fc3565f7e330.tar.gz
cpython-9c3d1be5d3b63169a95210b9dc95fc3565f7e330.tar.bz2
Merged revisions 72454 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72454 | tarek.ziade | 2009-05-08 01:01:56 +0200 (Fri, 08 May 2009) | 1 line fixed AR/ARFLAGS values in test_sysconfig ........
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_sysconfig.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py
index 971aac6..f65bc72 100644
--- a/Lib/distutils/tests/test_sysconfig.py
+++ b/Lib/distutils/tests/test_sysconfig.py
@@ -11,11 +11,15 @@ from test.support import TESTFN
class SysconfigTestCase(unittest.TestCase):
def setUp(self):
- self.old_AR = os.environ.get('AR')
+ self.old_flags = [('AR', os.environ.get('AR')),
+ ('ARFLAGS', os.environ.get('ARFLAGS'))]
def tearDown(self):
- if self.old_AR is not None:
- os.environ['AR'] = self.old_AR
+ for name, value in self.old_flags:
+ if value is not None:
+ os.environ[name] = value
+ elif name in os.environ:
+ del os.environ[name]
def test_get_config_h_filename(self):
config_h = sysconfig.get_config_h_filename()