diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py index 83a0130511..efcc2f51ff 100644 --- a/bin/tests/system/conftest.py +++ b/bin/tests/system/conftest.py @@ -449,6 +449,8 @@ else: ) else: mlogger.debug("deleting temporary directory") + handler.flush() + handler.close() shutil.rmtree(testdir) def _run_script( # pylint: disable=too-many-arguments