diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 16:41:01 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 16:41:01 +0200 |
commit | 3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874 (patch) | |
tree | 1107d3f6a9a5da5c08a1b5308794202e8ba242f4 /Lib/distutils/tests/test_sdist.py | |
parent | 4be1e24933db192b3cf95e102a46673bb3312dc3 (diff) | |
download | cpython-git-3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874.tar.gz |
Issue #19492: Silently skipped distutils tests now reported as skipped.
Diffstat (limited to 'Lib/distutils/tests/test_sdist.py')
-rw-r--r-- | Lib/distutils/tests/test_sdist.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py index e6359d6a8a..c952406131 100644 --- a/Lib/distutils/tests/test_sdist.py +++ b/Lib/distutils/tests/test_sdist.py @@ -125,13 +125,11 @@ class SDistTestCase(PyPIRCCommandTestCase): self.assertEqual(len(content), 4) @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run') + @unittest.skipIf(find_executable('tar') is None, + "The tar command is not found") + @unittest.skipIf(find_executable('gzip') is None, + "The gzip command is not found") def test_make_distribution(self): - - # check if tar and gzip are installed - if (find_executable('tar') is None or - find_executable('gzip') is None): - return - # now building a sdist dist, cmd = self.get_cmd() |