@contextlib.contextmanager
def temp_session(server, *args, **kwargs):

    if 'session_name' in kwargs:
        session_name = kwargs.pop('session_name')
    else:
        session_name = get_test_session_name(server)

    session = server.new_session(session_name, *args, **kwargs)

    try:
        yield session
    finally:
        if server.has_session(session_name):
            session.kill_session()
    return
How many indicator objects does the summary contain.
dataset/ETHPy150Open tony/tmuxp/tmuxp/testsuite/helpers.py/temp_session--crossover with--dataset/ETHPy150Open pympler/pympler/test/muppy/test_tracker.py/TrackerTest._contains_indicator