[py-svn] r20634 - py/dist/py/documentation
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Dec 4 12:50:11 CET 2005
Author: cfbolz
Date: Sun Dec 4 12:50:10 2005
New Revision: 20634
Modified:
py/dist/py/documentation/conftest.py
Log:
skip tests if docutils are not there
Modified: py/dist/py/documentation/conftest.py
==============================================================================
--- py/dist/py/documentation/conftest.py (original)
+++ py/dist/py/documentation/conftest.py Sun Dec 4 12:50:10 2005
@@ -14,6 +14,11 @@
)
)
+try:
+ import docutils
+except ImportError:
+ docutils = None
+
def checkdocutils():
try:
import docutils
@@ -52,6 +57,8 @@
class ReSTSyntaxTest(py.test.Item):
def run(self):
+ if docutils is None:
+ py.test.skip("missing docutils")
mypath = self.fspath
_checkskip(mypath)
restcheck(py.path.svnwc(mypath))
@@ -194,7 +201,7 @@
return results
def join(self, name):
- if not name.endswith('.txt'):
+ if not name.endswith('.txt'):
return super(DocDirectory, self).join(name)
p = self.fspath.join(name)
if p.check(file=1):
More information about the pytest-commit
mailing list