Commit c14efc4e authored by Antoine Pitrou's avatar Antoine Pitrou

Make a GC run before trying to clean up files left over by

the latest test run.
parent 72f48422
......@@ -978,6 +978,12 @@ def runtest_inner(test, verbose, quiet,
def cleanup_test_droppings(testname, verbose):
import shutil
import stat
import gc
# First kill any dangling references to open files etc.
# This can also issue some ResourceWarnings which would otherwise get
# triggered during the following test run, and possible produce failures.
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
......
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