summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-06-07 01:04:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-06-07 01:04:59 (GMT)
commitc27d655c00ec08f44abea646ae06456cbcca84b6 (patch)
tree7be58d514015e65f510db892babeb1e201e265e4 /Lib
parent704fbe41b73b2853f3eca309416e41ead7717eb8 (diff)
downloadcpython-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-xLib/test/regrtest.py3
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.