summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
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 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()