Author: Manuel Jacob
Branch: 
Changeset: r66681:96036c3af238
Date: 2013-08-30 18:20 +0100
http://bitbucket.org/pypy/pypy/changeset/96036c3af238/

Log:    Show the interp-level OperationError when an app-level test fails if
        the verbose option is set.

diff --git a/pypy/tool/pytest/apptest.py b/pypy/tool/pytest/apptest.py
--- a/pypy/tool/pytest/apptest.py
+++ b/pypy/tool/pytest/apptest.py
@@ -34,6 +34,8 @@
         try:
             target(*args)
         except OperationError, e:
+            if self.config.option.verbose:
+                raise
             tb = sys.exc_info()[2]
             if e.match(space, space.w_KeyboardInterrupt):
                 raise KeyboardInterrupt, KeyboardInterrupt(), tb
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to