[pypy-svn] pypy default: Added workaround for failing tests on systems w/o graphviz.
tav
commits-noreply at bitbucket.org
Thu Mar 3 12:19:40 CET 2011
Author: tav <tav at espians.com>
Branch:
Changeset: r42404:0f0f9d16dd20
Date: 2011-03-03 11:19 +0000
http://bitbucket.org/pypy/pypy/changeset/0f0f9d16dd20/
Log: Added workaround for failing tests on systems w/o graphviz.
diff --git a/py/_plugin/pytest_restdoc.py b/py/_plugin/pytest_restdoc.py
--- a/py/_plugin/pytest_restdoc.py
+++ b/py/_plugin/pytest_restdoc.py
@@ -77,8 +77,12 @@
try:
self._checkskip(path, self.project.get_htmloutputpath(path))
self.project.process(path)
- except KeyboardInterrupt:
- raise
+ except KeyboardInterrupt:
+ raise
+ except SystemExit, error:
+ if error.message == "ERROR: dot not found":
+ py.test.skip("system doesn't have graphviz installed")
+ raise
except SystemMessage:
# we assume docutils printed info on stdout
py.test.fail("docutils processing failed, see captured stderr")
More information about the Pypy-commit
mailing list