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

hirokazu.yamamoto python-checkins at python.org
Mon Sep 13 09:18:30 CEST 2010


Author: hirokazu.yamamoto
Date: Mon Sep 13 09:18:30 2010
New Revision: 84765

Log:
The order of two decorators was wrong. Try to fix buildbot error in other way.

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 09:18:30 2010
@@ -62,10 +62,14 @@
 
 if sys.platform=="win32":
     from distutils.msvccompiler import get_build_version
+    if get_build_version()>=8.0:
+        SKIP_MESSAGE = None
+    else:
+        SKIP_MESSAGE = "These tests are only for MSVC8.0 or above"
+else:
+    SKIP_MESSAGE = "These tests are only for win32"
 
- at unittest.skipUnless(sys.platform=="win32", "These tests are only for win32")
- at unittest.skipUnless(get_build_version()>=8.0, "These tests are only for"
-                                               " MSVC8.0 or above")
+ at unittest.skipUnless(SKIP_MESSAGE is None, SKIP_MESSAGE)
 class msvc9compilerTestCase(support.TempdirManager,
                             unittest.TestCase):
 


More information about the Python-checkins mailing list