File: bench_test_handler.py

package info (click to toggle)
logbook 1.7.0-1.0
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,140 kB
  • sloc: python: 6,558; makefile: 141
file content (10 lines) | stat: -rw-r--r-- 222 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
"""Tests the test handler"""
from logbook import Logger, TestHandler

log = Logger("Test logger")


def run():
    with TestHandler() as handler:
        for x in range(500):
            log.warning("this is not handled")