Author: Armin Rigo <[email protected]>
Branch: py3.5-refactor-sys_exc_info
Changeset: r88442:0418a55cd4e9
Date: 2016-11-17 15:03 +0000
http://bitbucket.org/pypy/pypy/changeset/0418a55cd4e9/

Log:    Before running a test, make sure sys_exc_info is cleared (might be a
        left-over from a previous failing test)

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
@@ -212,6 +212,7 @@
 
     def execute_appex(self, space, target, *args):
         self.space = space
+        space.getexecutioncontext().set_sys_exc_info(None)
         try:
             target(*args)
         except OperationError as e:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to