mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Handle yet another potential failure in testcapi
CID 1058280
This commit is contained in:
		
							parent
							
								
									5962bef8aa
								
							
						
					
					
						commit
						66eda26a72
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -2249,6 +2249,8 @@ profile_int(PyObject *self, PyObject* args)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Test 7: Perform medium int addition */
 | 
					    /* Test 7: Perform medium int addition */
 | 
				
			||||||
    op1 = PyLong_FromLong(1000);
 | 
					    op1 = PyLong_FromLong(1000);
 | 
				
			||||||
 | 
					    if (op1 == NULL)
 | 
				
			||||||
 | 
					        return NULL;
 | 
				
			||||||
    gettimeofday(&start, NULL);
 | 
					    gettimeofday(&start, NULL);
 | 
				
			||||||
    for(i=0; i < 10000000; i++) {
 | 
					    for(i=0; i < 10000000; i++) {
 | 
				
			||||||
        result = PyNumber_Add(op1, op1);
 | 
					        result = PyNumber_Add(op1, op1);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue