Fixed #5167: test_customize_compiler does not apply under non unix compilers

This commit is contained in:
Tarek Ziadé 2009-02-06 13:27:38 +00:00
parent 5561986da3
commit 0d6705b234
1 changed files with 6 additions and 0 deletions

View 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