Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1fba6b

Browse files
author
Tarek Ziadé
committed
Merged revisions 72713 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r72713 | tarek.ziade | 2009-05-17 12:07:48 +0200 (Sun, 17 May 2009) | 1 line not running this test with MSVC6 ........
1 parent 170fb04 commit b1fba6b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/distutils/tests/test_build_ext.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
# Don't load the xx module more than once.
2121
ALREADY_TESTED = False
2222

23+
if sys.platform != 'win32':
24+
UNDER_MSVC8 = False
25+
else:
26+
from distutils.msvccompiler import get_build_version
27+
UNDER_MSVC8 = get_build_version() < 8.0
28+
2329
def _get_source_filename():
2430
srcdir = sysconfig.get_config_var('srcdir')
2531
return os.path.join(srcdir, 'Modules', 'xxmodule.c')
@@ -293,6 +299,7 @@ def test_compiler_option(self):
293299
cmd.run()
294300
self.assertEquals(cmd.compiler, 'unix')
295301

302+
@unittest.skipIf(UNDER_MSVC8, 'not running this test for MSVC < 8')
296303
def test_get_outputs(self):
297304
tmp_dir = self.mkdtemp()
298305
c_file = os.path.join(tmp_dir, 'foo.c')

0 commit comments

Comments
 (0)