Issue #19492: Silently skipped distutils tests now reported as skipped.

This commit is contained in:
Serhiy Storchaka 2013-12-18 16:41:01 +02:00
parent 4be1e24933
commit 3c02ecefba
8 changed files with 32 additions and 57 deletions

View file

@ -102,11 +102,8 @@ class BuildCLibTestCase(support.TempdirManager,
cmd.distribution.libraries = 'WONTWORK'
self.assertRaises(DistutilsSetupError, cmd.finalize_options)
@unittest.skipIf(sys.platform == 'win32', "can't test on Windows")
def test_run(self):
# can't test on windows
if sys.platform == 'win32':
return
pkg_dir, dist = self.create_dist()
cmd = build_clib(dist)
@ -131,7 +128,7 @@ class BuildCLibTestCase(support.TempdirManager,
if ccmd is None:
continue
if find_executable(ccmd[0]) is None:
return # can't test
self.skipTest('The %r command is not found' % ccmd[0])
# this should work
cmd.run()