[py-svn] r36975 - py/dist/py/apigen/rest/testing
guido at codespeak.net
guido at codespeak.net
Thu Jan 18 23:02:34 CET 2007
Author: guido
Date: Thu Jan 18 23:02:33 2007
New Revision: 36975
Modified:
py/dist/py/apigen/rest/testing/test_rest.py
Log:
Skipping rest generation if docutils is not installed.
Modified: py/dist/py/apigen/rest/testing/test_rest.py
==============================================================================
--- py/dist/py/apigen/rest/testing/test_rest.py (original)
+++ py/dist/py/apigen/rest/testing/test_rest.py Thu Jan 18 23:02:33 2007
@@ -178,7 +178,12 @@
def check_rest(self, tempdir):
from py.__.misc import rest
for path in tempdir.listdir('*.txt'):
- rest.process(path)
+ try:
+ rest.process(path)
+ except ImportError:
+ py.test.skip('skipping rest generation because docutils is '
+ 'not installed (this is a partial skip, the rest '
+ 'of the test was successful)')
for path in tempdir.listdir('*.txt'):
for item, arg1, arg2, arg3 in genlinkchecks(path):
item(arg1, arg2, arg3)
More information about the pytest-commit
mailing list