def setup_module(module):
    global OLD_LOGGER_HANDLERS

    # Some tests expect messages from stdout/stderr. the logging module
    # interact with std streams, and logging configuration is modified by
    # these tests.
    # The setup and teardown ensures the logger stays unchanged after tests
    # execution.
    logger = logging.getLogger()
    OLD_LOGGER_HANDLERS = list(logger.handlers)

    start()
Beispiel #2
0
def setup_module(module):
    start()