[pypy-svn] r57984 - pypy/branch/pypy-pytrunk/pypy

pedronis at codespeak.net pedronis at codespeak.net
Mon Sep 8 18:26:04 CEST 2008


Author: pedronis
Date: Mon Sep  8 18:26:03 2008
New Revision: 57984

Modified:
   pypy/branch/pypy-pytrunk/pypy/conftest.py
Log:
(iko, pedronis)

tweak the exception traceback so that --pdb behaves like before



Modified: pypy/branch/pypy-pytrunk/pypy/conftest.py
==============================================================================
--- pypy/branch/pypy-pytrunk/pypy/conftest.py	(original)
+++ pypy/branch/pypy-pytrunk/pypy/conftest.py	Mon Sep  8 18:26:03 2008
@@ -279,12 +279,12 @@
         try:
             target(*args)
         except OperationError, e:
+            tb = sys.exc_info()[2]
             if e.match(space, space.w_KeyboardInterrupt):
-                tb = sys.exc_info()[2]
                 raise OpErrKeyboardInterrupt, OpErrKeyboardInterrupt(), tb
             appexcinfo = appsupport.AppExceptionInfo(space, e) 
             if appexcinfo.traceback: 
-                raise AppError(appexcinfo)
+                raise AppError, AppError(appexcinfo), tb
             raise
 
     def repr_failure(self, excinfo, outerr):



More information about the Pypy-commit mailing list