Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2984:1d3da4b31373
Date: 2017-06-19 11:58 +0200
http://bitbucket.org/cffi/cffi/changeset/1d3da4b31373/
Log: Don't use error capture around ffi.gc() finalizer errors
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -1852,12 +1852,15 @@
Py_DECREF(result);
}
else {
- PyObject *ecap, *t, *v, *tb;
+ PyObject *t, *v, *tb;
PyErr_Fetch(&t, &v, &tb);
- ecap = _cffi_start_error_capture();
+ /* Don't use error capture here, because it is very much
+ * like errors at __del__(), and these ones are not captured
+ * either */
+ /* ecap = _cffi_start_error_capture(); */
_my_PyErr_WriteUnraisable(t, v, tb, "From callback for ffi.gc ",
origobj, NULL);
- _cffi_stop_error_capture(ecap);
+ /* _cffi_stop_error_capture(ecap); */
}
Py_DECREF(destructor);
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit