]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #9313: Skips test_remove_visual_c_ref on old MSVC.
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 12 Sep 2010 22:55:40 +0000 (22:55 +0000)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
Sun, 12 Sep 2010 22:55:40 +0000 (22:55 +0000)
Lib/distutils/tests/test_msvc9compiler.py

index 8a908d99548bb47b2db8057a033fed44965c3a64..39e2c11cc2e9008cf4877dac4b31b523af2b2b51 100644 (file)
@@ -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')