Kaydet (Commit) 1a728525 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

yet another cache to clear when leak hunting.

üst eeed58cd
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment