diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 14:45:37 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 14:45:37 (GMT) |
commit | 57bc6da7c4327aa870fbf5292c1b05a9ac3bfe19 (patch) | |
tree | 56af358702aae00064f2bd19efd64808a82401ab /Lib/distutils/tests/test_check.py | |
parent | 15160399f57c531d202e02d8e9463e8b141cf54f (diff) | |
download | cpython-57bc6da7c4327aa870fbf5292c1b05a9ac3bfe19.zip cpython-57bc6da7c4327aa870fbf5292c1b05a9ac3bfe19.tar.gz cpython-57bc6da7c4327aa870fbf5292c1b05a9ac3bfe19.tar.bz2 |
Issue #19492: Silently skipped distutils tests now reported as skipped.
Diffstat (limited to 'Lib/distutils/tests/test_check.py')
-rw-r--r-- | Lib/distutils/tests/test_check.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/distutils/tests/test_check.py b/Lib/distutils/tests/test_check.py index f73342a..f86f129 100644 --- a/Lib/distutils/tests/test_check.py +++ b/Lib/distutils/tests/test_check.py @@ -56,9 +56,8 @@ class CheckTestCase(support.LoggingSilencer, cmd = self._run(metadata) self.assertEqual(cmd._warnings, 0) + @unittest.skipUnless(HAS_DOCUTILS, "won't test without docutils") def test_check_document(self): - if not HAS_DOCUTILS: # won't test without docutils - return pkg_info, dist = self.create_dist() cmd = check(dist) @@ -72,9 +71,8 @@ class CheckTestCase(support.LoggingSilencer, msgs = cmd._check_rst_data(rest) self.assertEqual(len(msgs), 0) + @unittest.skipUnless(HAS_DOCUTILS, "won't test without docutils") def test_check_restructuredtext(self): - if not HAS_DOCUTILS: # won't test without docutils - return # let's see if it detects broken rest in long_description broken_rest = 'title\n===\n\ntest' pkg_info, dist = self.create_dist(long_description=broken_rest) |