mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
get_build_version() is needed even where sys.platform != "win32".
Try to fix buildbot error in other way.
This commit is contained in:
parent
4cc96a16da
commit
bea8ae7948
1 changed files with 7 additions and 3 deletions
|
|
@ -62,10 +62,14 @@
|
||||||
|
|
||||||
if sys.platform=="win32":
|
if sys.platform=="win32":
|
||||||
from distutils.msvccompiler import get_build_version
|
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"
|
||||||
|
|
||||||
@unittest.skipUnless(sys.platform=="win32", "These tests are only for win32")
|
@unittest.skipUnless(SKIP_MESSAGE is None, SKIP_MESSAGE)
|
||||||
@unittest.skipUnless(get_build_version()>=8.0, "These tests are only for"
|
|
||||||
" MSVC8.0 or above")
|
|
||||||
class msvc9compilerTestCase(support.TempdirManager,
|
class msvc9compilerTestCase(support.TempdirManager,
|
||||||
unittest.TestCase):
|
unittest.TestCase):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue