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
|
@ -639,7 +639,7 @@ def dash_R_cleanup(fs, ps, pic):
|
||||||
import gc, copy_reg
|
import gc, copy_reg
|
||||||
import _strptime, linecache, warnings, dircache
|
import _strptime, linecache, warnings, dircache
|
||||||
import urlparse, urllib, urllib2, mimetypes, doctest
|
import urlparse, urllib, urllib2, mimetypes, doctest
|
||||||
import struct
|
import struct, filecmp
|
||||||
from distutils.dir_util import _path_created
|
from distutils.dir_util import _path_created
|
||||||
|
|
||||||
# Restore some original values.
|
# Restore some original values.
|
||||||
|
@ -660,6 +660,7 @@ def dash_R_cleanup(fs, ps, pic):
|
||||||
linecache.clearcache()
|
linecache.clearcache()
|
||||||
mimetypes._default_mime_types()
|
mimetypes._default_mime_types()
|
||||||
struct._cache.clear()
|
struct._cache.clear()
|
||||||
|
filecmp._cache.clear()
|
||||||
doctest.master = None
|
doctest.master = None
|
||||||
|
|
||||||
# Collect cyclic trash.
|
# Collect cyclic trash.
|
||||||
|
|
Loading…
Reference in New Issue