diff options
author | scoder <none@none> | 2007-10-29 12:22:00 +0100 |
---|---|---|
committer | scoder <none@none> | 2007-10-29 12:22:00 +0100 |
commit | f3a41fac213bd589d3c2e02e7bd056ee6d258042 (patch) | |
tree | 0bd7c785d291cacb885bdbac94985d7fddc75de0 /test.py | |
parent | 26c9fdd03ced44d0697913a28752490e91e66f0c (diff) | |
download | python-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.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |