summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorscoder <none@none>2007-10-29 12:22:00 +0100
committerscoder <none@none>2007-10-29 12:22:00 +0100
commitf3a41fac213bd589d3c2e02e7bd056ee6d258042 (patch)
tree0bd7c785d291cacb885bdbac94985d7fddc75de0 /test.py
parent26c9fdd03ced44d0697913a28752490e91e66f0c (diff)
downloadpython-lxml-f3a41fac213bd589d3c2e02e7bd056ee6d258042.tar.gz
[svn r3016] run garbage collection after each test case
--HG-- branch : trunk
Diffstat (limited to 'test.py')
-rw-r--r--test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test.py b/test.py
index 6c90bcdb..a1e01baa 100644
--- a/test.py
+++ b/test.py
@@ -63,6 +63,8 @@ Options:
# and cleaner though, at the expense of more limited functionality.
#
+import gc
+
import re
import os
import sys
@@ -416,6 +418,7 @@ class CustomTestRunner(unittest.TextTestRunner):
test(result)
stopTime = time.time()
timeTaken = float(stopTime - startTime)
+ gc.collect()
result.printErrors()
run = result.testsRun
if not self.cfg.quiet: