From: Hirokazu Yamamoto Date: Sun, 15 Mar 2009 22:43:14 +0000 (+0000) Subject: Added skip for old MSVC. X-Git-Tag: v2.7a1~1850 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb7467f6e3c1a95c3fa358cbf58c5d5ef0b550f3;p=thirdparty%2FPython%2Fcpython.git Added skip for old MSVC. --- diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py index bde614e9a4c0..78ce3b7a8464 100644 --- a/Lib/distutils/tests/test_msvc9compiler.py +++ b/Lib/distutils/tests/test_msvc9compiler.py @@ -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')