From: Hirokazu Yamamoto Date: Sun, 12 Sep 2010 22:55:40 +0000 (+0000) Subject: Issue #9313: Skips test_remove_visual_c_ref on old MSVC. X-Git-Tag: v3.2a3~296 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f28f0d92cd3f7c75450a22a93683395fea95623d;p=thirdparty%2FPython%2Fcpython.git Issue #9313: Skips test_remove_visual_c_ref on old MSVC. --- diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py index 8a908d99548b..39e2c11cc2e9 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')