summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-05-23 21:51:35 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-05-23 21:51:35 (GMT)
commit1bddfb84ee8e5a67af9a5001ab845c22c29cd491 (patch)
tree48caf1ef164c11a7a7817d1c622dac749b1166ef /Lib
parent77633518089c5512b9044cdedc525f3a08e2fdd4 (diff)
downloadcpython-1bddfb84ee8e5a67af9a5001ab845c22c29cd491.zip
cpython-1bddfb84ee8e5a67af9a5001ab845c22c29cd491.tar.gz
cpython-1bddfb84ee8e5a67af9a5001ab845c22c29cd491.tar.bz2
test_struct grew weird behavior under regrtest.py -R,
due to a module-level cache. Clearing the cache should make it stop showing up in refleak reports.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index ce9ed22..86961b0 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -545,6 +545,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False):
def cleanup():
import _strptime, linecache, warnings, dircache
import urlparse, urllib, urllib2, mimetypes, doctest
+ import struct
from distutils.dir_util import _path_created
_path_created.clear()
warnings.filters[:] = fs
@@ -561,6 +562,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False):
dircache.reset()
linecache.clearcache()
mimetypes._default_mime_types()
+ struct._cache.clear()
doctest.master = None
if indirect_test:
def run_the_test():