Close test log handler at end of test to fix file descriptor leak

This commit is contained in:
Jonathan Kamens
2012-08-21 22:29:51 -04:00
parent 3e23a2043a
commit ad980e6485
+1
View File
@@ -15,6 +15,7 @@ def setup_logger(test, path='/var/log/zipline/zipline.log'):
def teardown_logger(test):
test.log_handler.pop_application()
test.log_handler.close()
def check_list(test, a, b, label):
test.assertTrue(isinstance(a, (list, blist.blist)))