From 1a7285250ba1fb504c10fe3b402e5ebba98d287c Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Tue, 14 Jun 2005 09:31:28 +0000 Subject: yet another cache to clear when leak hunting. --- Lib/test/regrtest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 85e784b..4bd3931 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -491,6 +491,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False): import gc def cleanup(): import _strptime, urlparse, warnings, dircache + import linecache from distutils.dir_util import _path_created _path_created.clear() warnings.filters[:] = fs @@ -503,6 +504,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False): sys.path_importer_cache.clear() sys.path_importer_cache.update(pic) dircache.reset() + linecache.clearcache() if indirect_test: def run_the_test(): indirect_test() -- cgit v0.12