]> granicus.if.org Git - python/commitdiff
Fixed #5167: test_customize_compiler does not apply under non unix compilers
authorTarek Ziadé <ziade.tarek@gmail.com>
Fri, 6 Feb 2009 13:27:38 +0000 (13:27 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Fri, 6 Feb 2009 13:27:38 +0000 (13:27 +0000)
Lib/distutils/tests/test_sysconfig.py

index 7f0bce63c9f9227501e65c88cb46be954d3ba0f9..4636c0c127d7c4588617f4e834f7357bfbdc3e36 100644 (file)
@@ -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 @@ class SysconfigTestCase(unittest.TestCase):
 
     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