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:
Tim Peters 2006-06-07 01:04:59 +00:00
parent 704fbe41b7
commit c27d655c00
1 changed files with 2 additions and 1 deletions

View File

@ -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.