commit | 66eda26a72f052ac97512037a682bb08974681a6 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Fri Jul 26 15:54:07 2013 +0200 |
committer | Christian Heimes <christian@cheimes.de> | Fri Jul 26 15:54:07 2013 +0200 |
tree | 6e55bf691e1aa8ac089b7ce028d51332f4351c07 | |
parent | 5962bef8aa1b711c558d92c428c122717ddb5228 [diff] |
Handle yet another potential failure in testcapi CID 1058280
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 @@ /* 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);