diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-06-07 01:04:59 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-06-07 01:04:59 (GMT) |
commit | c27d655c00ec08f44abea646ae06456cbcca84b6 (patch) | |
tree | 7be58d514015e65f510db892babeb1e201e265e4 /Lib | |
parent | 704fbe41b73b2853f3eca309416e41ead7717eb8 (diff) | |
download | cpython-c27d655c00ec08f44abea646ae06456cbcca84b6.zip cpython-c27d655c00ec08f44abea646ae06456cbcca84b6.tar.gz cpython-c27d655c00ec08f44abea646ae06456cbcca84b6.tar.bz2 |
dash_R_cleanup(): Clear filecmp._cache. This accounts for
different results across -R runs (at least on Windows) of
test_filecmp.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/regrtest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 47a013a..ca4a3b5 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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. |