Author: Stian Andreassen Branch: Changeset: r98125:3b12b6935197 Date: 2019-11-21 15:46 +0100 http://bitbucket.org/pypy/pypy/changeset/3b12b6935197/
Log: Fix issue #3120, do restore traceback in PyErr_Restore. diff --git a/pypy/module/cpyext/pyerrors.py b/pypy/module/cpyext/pyerrors.py --- a/pypy/module/cpyext/pyerrors.py +++ b/pypy/module/cpyext/pyerrors.py @@ -88,7 +88,7 @@ if w_type is None: state.clear_exception() return - state.set_exception(OperationError(w_type, w_value)) + state.set_exception(OperationError(w_type, w_value, w_traceback)) @cpython_api([PyObjectP, PyObjectP, PyObjectP], lltype.Void) def PyErr_NormalizeException(space, exc_p, val_p, tb_p): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit