mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	yet another cache to clear when leak hunting.
This commit is contained in:
		
							parent
							
								
									eeed58cd25
								
							
						
					
					
						commit
						1a7285250b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -491,6 +491,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False):
 | 
			
		|||
                import gc
 | 
			
		||||
                def cleanup():
 | 
			
		||||
                    import _strptime, urlparse, warnings, dircache
 | 
			
		||||
                    import linecache
 | 
			
		||||
                    from distutils.dir_util import _path_created
 | 
			
		||||
                    _path_created.clear()
 | 
			
		||||
                    warnings.filters[:] = fs
 | 
			
		||||
| 
						 | 
				
			
			@ -503,6 +504,7 @@ def cleanup():
 | 
			
		|||
                    sys.path_importer_cache.clear()
 | 
			
		||||
                    sys.path_importer_cache.update(pic)
 | 
			
		||||
                    dircache.reset()
 | 
			
		||||
                    linecache.clearcache()
 | 
			
		||||
                if indirect_test:
 | 
			
		||||
                    def run_the_test():
 | 
			
		||||
                        indirect_test()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue