diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-06 13:27:38 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-06 13:27:38 (GMT) |
commit | 0d6705b23473f3b3c22c14a86c9e8af7fb16a917 (patch) | |
tree | 32d452a060a7d342b0a2b7919421c2d332c8ca60 /Lib | |
parent | 5561986da3e1cfab1b7168e546678a5015f39634 (diff) | |
download | cpython-0d6705b23473f3b3c22c14a86c9e8af7fb16a917.zip cpython-0d6705b23473f3b3c22c14a86c9e8af7fb16a917.tar.gz cpython-0d6705b23473f3b3c22c14a86c9e8af7fb16a917.tar.bz2 |
Fixed #5167: test_customize_compiler does not apply under non unix compilers
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/tests/test_sysconfig.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py index 7f0bce6..4636c0c 100644 --- a/Lib/distutils/tests/test_sysconfig.py +++ b/Lib/distutils/tests/test_sysconfig.py @@ -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 |