diff options
author | ?ric Araujo <merwok@netwok.org> | 2012-05-21 16:20:43 -0400 |
---|---|---|
committer | ?ric Araujo <merwok@netwok.org> | 2012-05-21 16:20:43 -0400 |
commit | 6d87420768fa80dfb30b9f4fa17c4dd4d38034cf (patch) | |
tree | eeff1f514a595fc5c7d88a990c80904f97d4b4f4 | |
parent | 1ed1781f2170be33392c3056f239766b1b1c6a58 (diff) | |
download | disutils2-6d87420768fa80dfb30b9f4fa17c4dd4d38034cf.tar.gz |
Use test skip decorator instead of private module attribute
-rw-r--r-- | distutils2/tests/test_command_check.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/distutils2/tests/test_command_check.py b/distutils2/tests/test_command_check.py index 4c1de9f..c73ddd5 100644 --- a/distutils2/tests/test_command_check.py +++ b/distutils2/tests/test_command_check.py @@ -1,7 +1,6 @@ """Tests for distutils.command.check.""" from distutils2.command.check import check -from distutils2.metadata import _HAS_DOCUTILS from distutils2.errors import PackagingSetupError, MetadataMissingError from distutils2.tests import unittest, support @@ -101,7 +100,7 @@ class CheckTestCase(support.LoggingCatcher, self._run(metadata, strict=True) self.assertEqual(self.get_logs(), []) - @unittest.skipUnless(_HAS_DOCUTILS, "requires docutils") + @support.require_docutils def test_check_restructuredtext(self): # let's see if it detects broken rest in description broken_rest = 'title\n===\n\ntest' |