Added skip for old MSVC.
This commit is contained in:
parent
fc9ea97a18
commit
bb7467f6e3
|
@ -34,6 +34,10 @@ class msvc9compilerTestCase(unittest.TestCase):
|
||||||
if sys.platform != 'win32':
|
if sys.platform != 'win32':
|
||||||
# this test is only for win32
|
# this test is only for win32
|
||||||
return
|
return
|
||||||
|
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 Reg
|
from distutils.msvc9compiler import Reg
|
||||||
self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')
|
self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')
|
||||||
|
|
Loading…
Reference in New Issue