diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 14:41:01 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 14:41:01 (GMT) |
| commit | 3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874 (patch) | |
| tree | 1107d3f6a9a5da5c08a1b5308794202e8ba242f4 /Lib/distutils/tests/test_build_clib.py | |
| parent | 4be1e24933db192b3cf95e102a46673bb3312dc3 (diff) | |
| download | cpython-3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874.zip cpython-3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874.tar.gz cpython-3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874.tar.bz2 | |
Issue #19492: Silently skipped distutils tests now reported as skipped.
Diffstat (limited to 'Lib/distutils/tests/test_build_clib.py')
| -rw-r--r-- | Lib/distutils/tests/test_build_clib.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/distutils/tests/test_build_clib.py b/Lib/distutils/tests/test_build_clib.py index c2b981f..acc99e7 100644 --- a/Lib/distutils/tests/test_build_clib.py +++ b/Lib/distutils/tests/test_build_clib.py @@ -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() |
