@contextlib.contextmanager
def temp_window(session, *args, **kwargs):

    if 'window_name' not in kwargs:
        window_name = get_test_window_name(session)
    else:
        window_name = kwargs.pop('window_name')

    window = session.new_window(window_name, *args, **kwargs)

    # Get ``window_id`` before returning it, it may be killed within context.
    window_id = window.get('window_id')

    try:
        yield session
    finally:
        if session.findWhere(window_id=window_id):
            window.kill_window()
    return
When using Lino's default method, the :setting:`LOGGING` setting in
dataset/ETHPy150Open tony/tmuxp/tmuxp/testsuite/helpers.py/temp_window--crossover with--dataset/ETHPy150Open lsaffre/lino/lino/utils/log.py/configure