summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-06-14 09:31:28 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-06-14 09:31:28 (GMT)
commit1a7285250ba1fb504c10fe3b402e5ebba98d287c (patch)
tree89044966e6e48b39e0fdae5aabbc26c043ea658d /Lib/test/regrtest.py
parenteeed58cd2588246023d388c14d44c5745e771b11 (diff)
downloadcpython-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-xLib/test/regrtest.py2
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()