summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-26 13:54:07 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-07-26 13:54:07 (GMT)
commit66eda26a72f052ac97512037a682bb08974681a6 (patch)
tree6e55bf691e1aa8ac089b7ce028d51332f4351c07 /Modules/_testcapimodule.c
parent5962bef8aa1b711c558d92c428c122717ddb5228 (diff)
downloadcpython-66eda26a72f052ac97512037a682bb08974681a6.zip
cpython-66eda26a72f052ac97512037a682bb08974681a6.tar.gz
cpython-66eda26a72f052ac97512037a682bb08974681a6.tar.bz2
Handle yet another potential failure in testcapi
CID 1058280
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index c3563fb..86ef713 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);