mirror of
https://github.com/python/cpython
synced 2024-09-18 20:41:44 +00:00
Handle yet another potential failure in testcapi
CID 1058280
This commit is contained in:
commit
ebf4204e84
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue