From c27d655c00ec08f44abea646ae06456cbcca84b6 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Wed, 7 Jun 2006 01:04:59 +0000 Subject: dash_R_cleanup(): Clear filecmp._cache. This accounts for different results across -R runs (at least on Windows) of test_filecmp. --- Lib/test/regrtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit v0.12