From: Christian Heimes Date: Fri, 26 Jul 2013 13:54:07 +0000 (+0200) Subject: Handle yet another potential failure in testcapi X-Git-Tag: v3.4.0a1~75^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66eda26a72f052ac97512037a682bb08974681a6;p=thirdparty%2FPython%2Fcpython.git Handle yet another potential failure in testcapi CID 1058280 --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index c3563fb5d29e..86ef713fae47 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -2249,6 +2249,8 @@ profile_int(PyObject *self, PyObject* args) /* Test 7: Perform medium int addition */ op1 = PyLong_FromLong(1000); + if (op1 == NULL) + return NULL; gettimeofday(&start, NULL); for(i=0; i < 10000000; i++) { result = PyNumber_Add(op1, op1);