[Python-checkins] r86028 - in python/branches/release31-maint: Lib/test/regrtest.py
antoine.pitrou
python-checkins at python.org
Sun Oct 31 14:15:21 CET 2010
Author: antoine.pitrou
Date: Sun Oct 31 14:15:20 2010
New Revision: 86028
Log:
Merged revisions 85935-85936 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85935 | antoine.pitrou | 2010-10-29 21:34:45 +0200 (ven., 29 oct. 2010) | 4 lines
Make a GC run before trying to clean up files left over by
the latest test run.
........
r85936 | antoine.pitrou | 2010-10-29 21:36:37 +0200 (ven., 29 oct. 2010) | 3 lines
Fix typo
........
Modified:
python/branches/release31-maint/ (props changed)
python/branches/release31-maint/Lib/test/regrtest.py
Modified: python/branches/release31-maint/Lib/test/regrtest.py
==============================================================================
--- python/branches/release31-maint/Lib/test/regrtest.py (original)
+++ python/branches/release31-maint/Lib/test/regrtest.py Sun Oct 31 14:15:20 2010
@@ -688,6 +688,10 @@
def cleanup_test_droppings(testname, verbose):
import shutil
import stat
+ import gc
+
+ # First kill any dangling references to open files etc.
+ gc.collect()
# Try to clean up junk commonly left behind. While tests shouldn't leave
# any files or directories behind, when a test fails that can be tedious
More information about the Python-checkins
mailing list