mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-01 12:01:05 +08:00
Close test log handler at end of test to fix file descriptor leak
This commit is contained in:
1 parent
3e23a2043a
commit
ad980e6485
1 file changed
+1
@@ -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)))
|
||||
|
||||
Reference in new issue
Block a user