mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	dash_R_cleanup(): Clear filecmp._cache. This accounts for
different results across -R runs (at least on Windows) of test_filecmp.
This commit is contained in:
		
							parent
							
								
									704fbe41b7
								
							
						
					
					
						commit
						c27d655c00
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -639,7 +639,7 @@ def dash_R_cleanup(fs, ps, pic):
 | 
			
		|||
    import gc, copy_reg
 | 
			
		||||
    import _strptime, linecache, warnings, dircache
 | 
			
		||||
    import urlparse, urllib, urllib2, mimetypes, doctest
 | 
			
		||||
    import struct
 | 
			
		||||
    import struct, filecmp
 | 
			
		||||
    from distutils.dir_util import _path_created
 | 
			
		||||
 | 
			
		||||
    # Restore some original values.
 | 
			
		||||
| 
						 | 
				
			
			@ -660,6 +660,7 @@ def dash_R_cleanup(fs, ps, pic):
 | 
			
		|||
    linecache.clearcache()
 | 
			
		||||
    mimetypes._default_mime_types()
 | 
			
		||||
    struct._cache.clear()
 | 
			
		||||
    filecmp._cache.clear()
 | 
			
		||||
    doctest.master = None
 | 
			
		||||
 | 
			
		||||
    # Collect cyclic trash.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue