[Lxml-checkins] r48148 - lxml/trunk
scoder at codespeak.net
scoder at codespeak.net
Mon Oct 29 12:22:00 CET 2007
Author: scoder
Date: Mon Oct 29 12:22:00 2007
New Revision: 48148
Modified:
lxml/trunk/test.py
Log:
run garbage collection after each test case
Modified: lxml/trunk/test.py
==============================================================================
--- lxml/trunk/test.py (original)
+++ lxml/trunk/test.py Mon Oct 29 12:22:00 2007
@@ -63,6 +63,8 @@
# and cleaner though, at the expense of more limited functionality.
#
+import gc
+
import re
import os
import sys
@@ -416,6 +418,7 @@
test(result)
stopTime = time.time()
timeTaken = float(stopTime - startTime)
+ gc.collect()
result.printErrors()
run = result.testsRun
if not self.cfg.quiet:
More information about the lxml-checkins
mailing list