X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/454ee2b8f0385c542b6f1165a3baf2820425e1a3..2b0fad4e2c099ebe42ae7cdb20615d9e0da2afc9:/sdk/cwl/tests/test_make_output.py diff --git a/sdk/cwl/tests/test_make_output.py b/sdk/cwl/tests/test_make_output.py index 127b3f372b..fe269592cb 100644 --- a/sdk/cwl/tests/test_make_output.py +++ b/sdk/cwl/tests/test_make_output.py @@ -23,6 +23,13 @@ class TestMakeOutput(unittest.TestCase): self.api = mock.MagicMock() self.api._rootDesc = get_rootDesc() + def tearDown(self): + root_logger = logging.getLogger('') + + # Remove existing RuntimeStatusLoggingHandlers if they exist + handlers = [h for h in root_logger.handlers if not isinstance(h, arvados_cwl.executor.RuntimeStatusLoggingHandler)] + root_logger.handlers = handlers + @mock.patch("arvados.collection.Collection") @mock.patch("arvados.collection.CollectionReader") def test_make_output_collection(self, reader, col): @@ -171,4 +178,4 @@ class TestMakeOutput(unittest.TestCase): # Check that the file name conflict is resolved and open is called for both final.open.assert_any_call("a_file", "wb") - final.open.assert_any_call("a_file_2", "wb") \ No newline at end of file + final.open.assert_any_call("a_file_2", "wb")