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:
Mark Dickinson 2010-02-13 18:34:53 +00:00
parent c2d8689150
commit edff7af1cf
2 changed files with 6 additions and 0 deletions

View file

@ -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.

View file

@ -1763,6 +1763,8 @@ test_capsule(PyObject *self, PyObject *args)
Py_DECREF(object);
Py_DECREF(module);
}
else
PyErr_Clear();
}
exit: