diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-03-15 22:43:14 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-03-15 22:43:14 (GMT) |
commit | bb7467f6e3c1a95c3fa358cbf58c5d5ef0b550f3 (patch) | |
tree | 32f0fbb872929d22480de5c6af7325c46d1e494c /Lib/distutils | |
parent | fc9ea97a18c2c25045b4cc993932702b30df239c (diff) | |
download | cpython-bb7467f6e3c1a95c3fa358cbf58c5d5ef0b550f3.zip cpython-bb7467f6e3c1a95c3fa358cbf58c5d5ef0b550f3.tar.gz cpython-bb7467f6e3c1a95c3fa358cbf58c5d5ef0b550f3.tar.bz2 |
Added skip for old MSVC.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_msvc9compiler.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py index bde614e..78ce3b7 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') |