From: Hirokazu Yamamoto Date: Wed, 7 Jan 2009 09:42:28 +0000 (+0000) Subject: Issue #4864: test_msvc9compiler failed on VC6/7. X-Git-Tag: v2.7a1~2369 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fde5b803d8f2437e5311bae73c970c7205fcd925;p=thirdparty%2FPython%2Fcpython.git Issue #4864: test_msvc9compiler failed on VC6/7. Reviewed by Amaury Forgeot d'Arc. --- diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py index 1659cea51033..0c8bd6e0423b 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