[Python-checkins] python/dist/src/Lib/test regrtest.py, 1.168, 1.169

mwh@users.sourceforge.net mwh at users.sourceforge.net
Tue Jun 14 11:31:30 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3612

Modified Files:
	regrtest.py 
Log Message:
yet another cache to clear when leak hunting.


Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -d -r1.168 -r1.169
--- regrtest.py	10 Jun 2005 11:05:19 -0000	1.168
+++ regrtest.py	14 Jun 2005 09:31:28 -0000	1.169
@@ -491,6 +491,7 @@
                 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 @@
                     sys.path_importer_cache.clear()
                     sys.path_importer_cache.update(pic)
                     dircache.reset()
+                    linecache.clearcache()
                 if indirect_test:
                     def run_the_test():
                         indirect_test()



More information about the Python-checkins mailing list