]> granicus.if.org Git - python/commitdiff
Merged revisions 68373 via svnmerge from
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Wed, 7 Jan 2009 10:11:17 +0000 (10:11 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Wed, 7 Jan 2009 10:11:17 +0000 (10:11 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68373 | hirokazu.yamamoto | 2009-01-07 18:42:28 +0900 | 2 lines

  Issue #4864: test_msvc9compiler failed on VC6/7.
  Reviewed by Amaury Forgeot d'Arc.
........

Lib/distutils/tests/test_msvc9compiler.py

index 1659cea51033b48e73ce262157e5f5c343db2ac6..0c8bd6e0423b18706ccd17725cc3575ea347b8ce 100644 (file)
@@ -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