mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Fix @bigmemtest when no limit is given by the user (oops)
This commit is contained in:
		
							parent
							
								
									aca5fa7010
								
							
						
					
					
						commit
						9dd1171305
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1001,7 +1001,7 @@ def wrapper(self):
 | 
				
			||||||
                # to make sure they work. We still want to avoid using
 | 
					                # to make sure they work. We still want to avoid using
 | 
				
			||||||
                # too much memory, though, but we do that noisily.
 | 
					                # too much memory, though, but we do that noisily.
 | 
				
			||||||
                maxsize = 5147
 | 
					                maxsize = 5147
 | 
				
			||||||
                self.assertFalse(maxsize * memuse + overhead > 20 * _1M)
 | 
					                self.assertFalse(maxsize * memuse > 20 * _1M)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                maxsize = int(max_memuse / memuse)
 | 
					                maxsize = int(max_memuse / memuse)
 | 
				
			||||||
                if maxsize < minsize:
 | 
					                if maxsize < minsize:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue