tests/_helpers.py
def _logger_stream(logger):
    """Function which can retrieve a handle to the logger stream being used for this test."""
    test_handlers = [handler for handler in logger.handlers if handler.name == 'dirbs.test']
    assert len(test_handlers) == 1
    return test_handlers[0].stream
Function which can retrieve a handle to the logger stream being used for this test.
Function which can retrieve a handle to the logger stream being used for this test.
Function which can retrieve a handle to the logger stream being used for this test .
def _logger_stream(logger):
    test_handlers = [handler for handler in logger.handlers if handler.name == 'dirbs.test']
    assert len(test_handlers) == 1
    return test_handlers[0].stream
def _logger_stream ( logger ) : test_handlers = [ handler for handler in logger . handlers if handler . name == 'dirbs.test' ] assert len ( test_handlers ) == 1 return test_handlers [ 0 ] . stream
Function which can retrieve a handle to the logger stream being used for this test.
Function which can retrieve a handle to the logger stream being used for this test .
"""Function which can retrieve a handle to the logger stream being used for this test."""
logger