diff options
-rw-r--r-- | Misc/NEWS | 4 | ||||
-rw-r--r-- | Modules/_testcapimodule.c | 2 |
2 files changed, 6 insertions, 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. diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index f9f6fca..5631d5a 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -1763,6 +1763,8 @@ test_capsule(PyObject *self, PyObject *args) Py_DECREF(object); Py_DECREF(module); } + else + PyErr_Clear(); } exit: |