[Python-checkins] r84753 - python/branches/py3k/Lib/distutils/tests/test_msvc9compiler.py

hirokazu.yamamoto python-checkins at python.org
Mon Sep 13 00:55:41 CEST 2010


Author: hirokazu.yamamoto
Date: Mon Sep 13 00:55:40 2010
New Revision: 84753

Log:
Issue #9313: Skips test_remove_visual_c_ref on old MSVC.

Modified:
   python/branches/py3k/Lib/distutils/tests/test_msvc9compiler.py

Modified: python/branches/py3k/Lib/distutils/tests/test_msvc9compiler.py
==============================================================================
--- python/branches/py3k/Lib/distutils/tests/test_msvc9compiler.py	(original)
+++ python/branches/py3k/Lib/distutils/tests/test_msvc9compiler.py	Mon Sep 13 00:55:40 2010
@@ -109,6 +109,11 @@
         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')


More information about the Python-checkins mailing list