summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-26 15:54:07 +0200
committerChristian Heimes <christian@cheimes.de>2013-07-26 15:54:07 +0200
commit66eda26a72f052ac97512037a682bb08974681a6 (patch)
tree6e55bf691e1aa8ac089b7ce028d51332f4351c07
parent5962bef8aa1b711c558d92c428c122717ddb5228 (diff)
downloadcpython-git-66eda26a72f052ac97512037a682bb08974681a6.tar.gz
Handle yet another potential failure in testcapi
CID 1058280
-rw-r--r--Modules/_testcapimodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index c3563fb5d2..86ef713fae 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);