diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-06 13:33:47 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-06 13:33:47 (GMT) |
commit | fce970af2b464c8d17b664af8d329836f9c46e16 (patch) | |
tree | a9afde937114bb91bec97a0b94a0ace80478a7de /Lib/distutils/tests | |
parent | 9b6ddb8eb74a59793fa4262c63b384313024fd3a (diff) | |
download | cpython-fce970af2b464c8d17b664af8d329836f9c46e16.zip cpython-fce970af2b464c8d17b664af8d329836f9c46e16.tar.gz cpython-fce970af2b464c8d17b664af8d329836f9c46e16.tar.bz2 |
Merged revisions 69366 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69366 | tarek.ziade | 2009-02-06 14:27:38 +0100 (Fri, 06 Feb 2009) | 1 line
Fixed #5167: test_customize_compiler does not apply under non unix compilers
........
Diffstat (limited to 'Lib/distutils/tests')
-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 cb802c6..af6f183 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 |