mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Merged revisions 71478 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71478 | tarek.ziade | 2009-04-11 17:14:17 +0200 (Sat, 11 Apr 2009) | 1 line testing a full check case ........
This commit is contained in:
parent
f396ecf3b8
commit
aa4398b642
2 changed files with 8 additions and 1 deletions
|
@ -65,7 +65,7 @@ class check(Command):
|
||||||
if self.metadata:
|
if self.metadata:
|
||||||
self.check_metadata()
|
self.check_metadata()
|
||||||
if self.restructuredtext:
|
if self.restructuredtext:
|
||||||
if docutils:
|
if HAS_DOCUTILS:
|
||||||
self.check_restructuredtext()
|
self.check_restructuredtext()
|
||||||
elif self.strict:
|
elif self.strict:
|
||||||
raise DistutilsSetupError('The docutils package is needed.')
|
raise DistutilsSetupError('The docutils package is needed.')
|
||||||
|
|
|
@ -85,6 +85,13 @@ class CheckTestCase(support.LoggingSilencer,
|
||||||
cmd.check_restructuredtext()
|
cmd.check_restructuredtext()
|
||||||
self.assertEquals(cmd._warnings, 0)
|
self.assertEquals(cmd._warnings, 0)
|
||||||
|
|
||||||
|
def test_check_all(self):
|
||||||
|
|
||||||
|
metadata = {'url': 'xxx', 'author': 'xxx'}
|
||||||
|
self.assertRaises(DistutilsSetupError, self._run,
|
||||||
|
{}, **{'strict': 1,
|
||||||
|
'restructuredtext': 1})
|
||||||
|
|
||||||
def test_suite():
|
def test_suite():
|
||||||
return unittest.makeSuite(CheckTestCase)
|
return unittest.makeSuite(CheckTestCase)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue