[Python-checkins] r69366 - python/trunk/Lib/distutils/tests/test_sysconfig.py

tarek.ziade python-checkins at python.org
Fri Feb 6 14:27:38 CET 2009


Author: tarek.ziade
Date: Fri Feb 6 14:27:38 2009
New Revision: 69366
Log:
Fixed #5167: test_customize_compiler does not apply under non unix compilers
Modified:
 python/trunk/Lib/distutils/tests/test_sysconfig.py
Modified: python/trunk/Lib/distutils/tests/test_sysconfig.py
==============================================================================
--- python/trunk/Lib/distutils/tests/test_sysconfig.py	(original)
+++ python/trunk/Lib/distutils/tests/test_sysconfig.py	Fri Feb 6 14:27:38 2009
@@ -1,6 +1,8 @@
 """Tests for distutils.dist."""
 
 from distutils import sysconfig
+from distutils.ccompiler import get_default_compiler
+
 import os
 import unittest
 
@@ -41,6 +43,10 @@
 
 def test_customize_compiler(self):
 
+ # not testing if default compiler is not unix
+ if get_default_compiler() != 'unix':
+ return
+
 os.environ['AR'] = 'xxx'
 
 # make sure AR gets caught


More information about the Python-checkins mailing list

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