diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-26 13:54:13 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-26 13:54:13 (GMT) |
commit | ebf4204e840e80c9b84a4c85d048128d816c6c02 (patch) | |
tree | 658771ccd99ac4a0a493935e0a2c06bc6d12607f | |
parent | 9bfcaa6fb39358b4aa950e8bd522b1acdf472bba (diff) | |
parent | 66eda26a72f052ac97512037a682bb08974681a6 (diff) | |
download | cpython-ebf4204e840e80c9b84a4c85d048128d816c6c02.zip cpython-ebf4204e840e80c9b84a4c85d048128d816c6c02.tar.gz cpython-ebf4204e840e80c9b84a4c85d048128d816c6c02.tar.bz2 |
Handle yet another potential failure in testcapi
CID 1058280
-rw-r--r-- | Modules/_testcapimodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 8eb3a3b..9463227 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -2263,6 +2263,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); |