[py-svn] r10760 - py/dist/py/documentation

hpk at codespeak.net hpk at codespeak.net
Sun Apr 17 12:44:33 CEST 2005


Author: hpk
Date: Sun Apr 17 12:44:33 2005
New Revision: 10760

Modified:
   py/dist/py/documentation/rest_test.py
Log:
fail more nicely with docutils


Modified: py/dist/py/documentation/rest_test.py
==============================================================================
--- py/dist/py/documentation/rest_test.py	(original)
+++ py/dist/py/documentation/rest_test.py	Sun Apr 17 12:44:33 2005
@@ -11,7 +11,13 @@
     except ImportError:
         py.test.skip("docutils not importable")
     # this helper will raise errors instead of warnings 
-    rest.process(path) 
+    try: 
+        rest.process(path) 
+    except KeyboardInterrupt: 
+        raise 
+    except: 
+        # we assume docutils printed info on stdout 
+        py.test.fail("docutils processing failed, see captured stderr") 
     #assert not out
 
 def test_rest_files():



More information about the pytest-commit mailing list