Commits

Antonio Cuni  committed 0f407c6

after 145994f7f8f9 we pass the result of getattr(..., '__traceback__') to set_traceback(), which means that the annotator things it's a W_Root. Force the field to be annotated as PyTraceback

  • Participants
  • Parent commits 1466c31
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/interpreter/error.py

         only if the exception really propagates out of this frame, by
         executioncontext.leave() being called with got_exception=True.
         """
+        from pypy.interpreter.pytraceback import PyTraceback
+        assert isinstance(traceback, PyTraceback)
         self._application_traceback = traceback
 
 # ____________________________________________________________