[Python-checkins] r68373 - python/trunk/Lib/distutils/tests/test_msvc9compiler.py

hirokazu.yamamoto python-checkins at python.org
Wed Jan 7 10:42:28 CET 2009


Author: hirokazu.yamamoto
Date: Wed Jan  7 10:42:28 2009
New Revision: 68373

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

Modified:
   python/trunk/Lib/distutils/tests/test_msvc9compiler.py

Modified: python/trunk/Lib/distutils/tests/test_msvc9compiler.py
==============================================================================
--- python/trunk/Lib/distutils/tests/test_msvc9compiler.py	(original)
+++ python/trunk/Lib/distutils/tests/test_msvc9compiler.py	Wed Jan  7 10:42:28 2009
@@ -13,6 +13,10 @@
         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


More information about the Python-checkins mailing list