summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-01-07 09:42:28 +0000
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-01-07 09:42:28 +0000
commitfde5b803d8f2437e5311bae73c970c7205fcd925 (patch)
tree4e2254855050f2dab327a1bb4218dbab6ca76c0d
parent09cafb6335f84d5b2b1264ac2ee29585ed960314 (diff)
downloadcpython-git-fde5b803d8f2437e5311bae73c970c7205fcd925.tar.gz
Issue #4864: test_msvc9compiler failed on VC6/7.
Reviewed by Amaury Forgeot d'Arc.
-rw-r--r--Lib/distutils/tests/test_msvc9compiler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py
index 1659cea510..0c8bd6e042 100644
--- a/Lib/distutils/tests/test_msvc9compiler.py
+++ b/Lib/distutils/tests/test_msvc9compiler.py
@@ -13,6 +13,10 @@ class msvc9compilerTestCase(unittest.TestCase):
if sys.platform != 'win32':
# this test is only for win32
return
+ from distutils.msvccompiler import get_build_version
+ if get_build_version() < 8.0:
+ # this test is only for MSVC8.0 or above
+ return
from distutils.msvc9compiler import query_vcvarsall
def _find_vcvarsall(version):
return None