mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #7924: Fix an intermittent 'XXX undetected error' crash in
test_capi, due to test_capsule failing to clear an exception. Many thanks to Florent Xicluna for the diagnosis and fix.
This commit is contained in:
parent
c2d8689150
commit
edff7af1cf
2 changed files with 6 additions and 0 deletions
|
@ -738,6 +738,10 @@ Documentation
|
|||
Tests
|
||||
-----
|
||||
|
||||
- Issue #7924: Fix an intermittent 'XXX undetected error' failure in
|
||||
test_capi (only seen so far on platforms where the curses module
|
||||
wasn't built), due to an uncleared exception.
|
||||
|
||||
- issue #7728: test_timeout was changed to use test_support.bind_port
|
||||
instead of a hard coded port.
|
||||
|
||||
|
|
|
@ -1763,6 +1763,8 @@ test_capsule(PyObject *self, PyObject *args)
|
|||
Py_DECREF(object);
|
||||
Py_DECREF(module);
|
||||
}
|
||||
else
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
||||
exit:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue