diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2010-09-13 07:18:30 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2010-09-13 07:18:30 (GMT) |
commit | bea8ae794873485eef1b0c0c20b374df99858430 (patch) | |
tree | c8f7b8409c6039f8be4e7d2c184ef50999008249 /Lib/distutils | |
parent | 4cc96a16da33017ccdb1fce46a0cf910eb20f7a2 (diff) | |
download | cpython-bea8ae794873485eef1b0c0c20b374df99858430.zip cpython-bea8ae794873485eef1b0c0c20b374df99858430.tar.gz cpython-bea8ae794873485eef1b0c0c20b374df99858430.tar.bz2 |
get_build_version() is needed even where sys.platform != "win32".
Try to fix buildbot error in other way.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_msvc9compiler.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py index ec2b2e3..f1da843 100644 --- a/Lib/distutils/tests/test_msvc9compiler.py +++ b/Lib/distutils/tests/test_msvc9compiler.py @@ -62,10 +62,14 @@ _CLEANED_MANIFEST = """\ if sys.platform=="win32": from distutils.msvccompiler import get_build_version - -@unittest.skipUnless(sys.platform=="win32", "These tests are only for win32") -@unittest.skipUnless(get_build_version()>=8.0, "These tests are only for" - " MSVC8.0 or above") + 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" + +@unittest.skipUnless(SKIP_MESSAGE is None, SKIP_MESSAGE) class msvc9compilerTestCase(support.TempdirManager, unittest.TestCase): |