mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-02 18:46:32 +08:00
Close test log handler at end of test to fix file descriptor leak
This commit is contained in:
@@ -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