def on_leave_test(): for a in CONTROLLED_APPS[-1]: if not a.HasExited: logging.warning('Test teardown: an app is still running') a.Dispose() del CONTROLLED_APPS[-1] stop_monitoring()
def finalize_monitors(): """ Finalize Monitors Finalizes error handling: checks if there were errors detected (and fails if yes). Stops the handlers. :return: None """ stop_monitoring()