]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added skip for old MSVC.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 15 Mar 2009 22:43:14 +0000 (22:43 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 15 Mar 2009 22:43:14 +0000 (22:43 +0000)
Lib/distutils/tests/test_msvc9compiler.py

index bde614e9a4c01f1fc97c1a013258c916e744d3f7..78ce3b7a84648c872a10dc59e19ff31bfd22b4f9 100644 (file)
@@ -34,6 +34,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 Reg
         self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')