From f28f0d92cd3f7c75450a22a93683395fea95623d Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Sun, 12 Sep 2010 22:55:40 +0000 Subject: [PATCH] Issue #9313: Skips test_remove_visual_c_ref on old MSVC. --- Lib/distutils/tests/test_msvc9compiler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py index 8a908d99548..39e2c11cc2e 100644 --- a/Lib/distutils/tests/test_msvc9compiler.py +++ b/Lib/distutils/tests/test_msvc9compiler.py @@ -109,6 +109,11 @@ class msvc9compilerTestCase(support.TempdirManager, self.assertTrue('Desktop' in keys) def test_remove_visual_c_ref(self): + 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 MSVCCompiler tempdir = self.mkdtemp() manifest = os.path.join(tempdir, 'manifest')