diff options
author | Michael W. Hudson <mwh@python.net> | 2005-06-14 09:31:28 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-06-14 09:31:28 (GMT) |
commit | 1a7285250ba1fb504c10fe3b402e5ebba98d287c (patch) | |
tree | 89044966e6e48b39e0fdae5aabbc26c043ea658d /Lib/test/regrtest.py | |
parent | eeed58cd2588246023d388c14d44c5745e771b11 (diff) | |
download | cpython-1a7285250ba1fb504c10fe3b402e5ebba98d287c.zip cpython-1a7285250ba1fb504c10fe3b402e5ebba98d287c.tar.gz cpython-1a7285250ba1fb504c10fe3b402e5ebba98d287c.tar.bz2 |
yet another cache to clear when leak hunting.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 2 |
1 files changed, 2 insertions, 0 deletions
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() |