[Python-checkins] r72455 - in python/branches/py3k: Lib/distutils/tests/test_sysconfig.py

tarek.ziade python-checkins at python.org
Fri May 8 01:11:34 CEST 2009


Author: tarek.ziade
Date: Fri May 8 01:11:34 2009
New Revision: 72455
Log:
Merged revisions 72454 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk
........
 r72454 | tarek.ziade | 2009年05月08日 01:01:56 +0200 (2009年5月08日) | 1 line
 
 fixed AR/ARFLAGS values in test_sysconfig
........
Modified:
 python/branches/py3k/ (props changed)
 python/branches/py3k/Lib/distutils/tests/test_sysconfig.py
Modified: python/branches/py3k/Lib/distutils/tests/test_sysconfig.py
==============================================================================
--- python/branches/py3k/Lib/distutils/tests/test_sysconfig.py	(original)
+++ python/branches/py3k/Lib/distutils/tests/test_sysconfig.py	Fri May 8 01:11:34 2009
@@ -11,11 +11,15 @@
 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()


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /