summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-13 20:04:13 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-12-13 20:04:13 (GMT)
commit4205a22308eb1f8f0b819f8bcff88c2e7f53abf4 (patch)
treed293a4dfb71d5feb6d11d88b439fcfb052f67974
parent6b59f77c43c492f4c707ad4d8e2d2b0b871414e8 (diff)
downloadcpython-4205a22308eb1f8f0b819f8bcff88c2e7f53abf4.zip
cpython-4205a22308eb1f8f0b819f8bcff88c2e7f53abf4.tar.gz
cpython-4205a22308eb1f8f0b819f8bcff88c2e7f53abf4.tar.bz2
Merged revisions 76810 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76810 | mark.dickinson | 2009-12-13 20:03:21 +0000 (Sun, 13 Dec 2009) | 4 lines Make sure that test_capsule always returns NULL on error; this may help diagnose the sporadic test_capi failures on Solaris. ........
-rw-r--r--Modules/_testcapimodule.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 5917d91..360ddbc 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -1293,6 +1293,21 @@ test_capsule(PyObject *self, PyObject *args)
if (error) {
return raiseTestError("test_capsule", error);
}
+ /* 13/12/2009: something is causing test_capi to fail occasionally on
+ the Solaris buildbot, with the output:
+
+ internal test_L_code
+ internal test_Z_code
+ internal test_bug_7414
+ internal test_capsule
+ XXX undetected error
+ internaltest test_capi crashed -- <class 'ImportError'>: No module named datetime
+
+ It seems possible that test_capsule is raising an exception but
+ failing to return NULL. Do a PyErr_Occurred check to find out.
+ */
+ if (PyErr_Occurred())
+ return NULL;
Py_RETURN_NONE;
#undef FAIL
}