SYMBOL INDEX (1342 symbols across 160 files) FILE: docs/conf.py function setup (line 180) | def setup(app): FILE: loguru/__init__.pyi class _GeneratorContextManager (line 52) | class _GeneratorContextManager(ContextManager[_T], Generic[_T]): method __call__ (line 53) | def __call__(self, func: _F) -> _F: ... method __exit__ (line 54) | def __exit__( class Level (line 65) | class Level(NamedTuple): class _RecordAttribute (line 71) | class _RecordAttribute: method __format__ (line 72) | def __format__(self, spec: str) -> str: ... class RecordFile (line 74) | class RecordFile(_RecordAttribute): class RecordLevel (line 78) | class RecordLevel(_RecordAttribute): class RecordThread (line 83) | class RecordThread(_RecordAttribute): class RecordProcess (line 87) | class RecordProcess(_RecordAttribute): class RecordException (line 91) | class RecordException(NamedTuple): class Record (line 96) | class Record(TypedDict): class Message (line 111) | class Message(str): class Writable (line 114) | class Writable(Protocol): method write (line 115) | def write(self, message: Message) -> Any: ... class BasicHandlerConfig (line 127) | class BasicHandlerConfig(TypedDict, total=False): class FileHandlerConfig (line 139) | class FileHandlerConfig(TypedDict, total=False): class AsyncHandlerConfig (line 172) | class AsyncHandlerConfig(TypedDict, total=False): class LevelConfig (line 188) | class LevelConfig(TypedDict, total=False): class Logger (line 196) | class Logger: method add (line 198) | def add( method add (line 214) | def add( method add (line 231) | def add( method remove (line 267) | def remove(self, handler_id: Optional[int] = ...) -> None: ... method complete (line 268) | def complete(self) -> AwaitableCompleter: ... method catch (line 270) | def catch( method catch (line 282) | def catch(self, function: _F) -> _F: ... method opt (line 283) | def opt( method bind (line 295) | def bind(__self, **kwargs: Any) -> Logger: ... # noqa: N805 method contextualize (line 296) | def contextualize(__self, **kwargs: Any) -> Contextualizer: ... # noq... method patch (line 297) | def patch(self, patcher: PatcherFunction) -> Logger: ... method level (line 299) | def level(self, name: str) -> Level: ... method level (line 301) | def level( method level (line 305) | def level( method disable (line 312) | def disable(self, name: Optional[str]) -> None: ... method enable (line 313) | def enable(self, name: Optional[str]) -> None: ... method configure (line 314) | def configure( method reinstall (line 323) | def reinstall(self) -> None: ... method parse (line 329) | def parse( method parse (line 338) | def parse( method trace (line 347) | def trace(__self, __message: str, *args: Any, **kwargs: Any) -> None: ... method trace (line 349) | def trace(__self, __message: Any) -> None: ... # noqa: N805 method debug (line 351) | def debug(__self, __message: str, *args: Any, **kwargs: Any) -> None: ... method debug (line 353) | def debug(__self, __message: Any) -> None: ... # noqa: N805 method info (line 355) | def info(__self, __message: str, *args: Any, **kwargs: Any) -> None: .... method info (line 357) | def info(__self, __message: Any) -> None: ... # noqa: N805 method success (line 359) | def success(__self, __message: str, *args: Any, **kwargs: Any) -> None... method success (line 361) | def success(__self, __message: Any) -> None: ... # noqa: N805 method warning (line 363) | def warning(__self, __message: str, *args: Any, **kwargs: Any) -> None... method warning (line 365) | def warning(__self, __message: Any) -> None: ... # noqa: N805 method error (line 367) | def error(__self, __message: str, *args: Any, **kwargs: Any) -> None: ... method error (line 369) | def error(__self, __message: Any) -> None: ... # noqa: N805 method critical (line 371) | def critical(__self, __message: str, *args: Any, **kwargs: Any) -> Non... method critical (line 373) | def critical(__self, __message: Any) -> None: ... # noqa: N805 method exception (line 375) | def exception(__self, __message: str, *args: Any, **kwargs: Any) -> No... method exception (line 377) | def exception(__self, __message: Any) -> None: ... # noqa: N805 method log (line 379) | def log( method log (line 383) | def log(__self, __level: Union[int, str], __message: Any) -> None: ...... method start (line 384) | def start(self, *args: Any, **kwargs: Any) -> int: ... method stop (line 385) | def stop(self, *args: Any, **kwargs: Any) -> None: ... FILE: loguru/_asyncio_loop.py function load_loop_functions (line 5) | def load_loop_functions(): FILE: loguru/_better_exceptions.py function is_exception_group (line 15) | def is_exception_group(exc): function is_exception_group (line 23) | def is_exception_group(exc): function is_exception_group (line 28) | def is_exception_group(exc): class SyntaxHighlighter (line 32) | class SyntaxHighlighter: method __init__ (line 61) | def __init__(self, style=None): method highlight (line 64) | def highlight(self, source): method tokenize (line 115) | def tokenize(source): class ExceptionFormatter (line 126) | class ExceptionFormatter: method __init__ (line 143) | def __init__( method _get_lib_dirs (line 170) | def _get_lib_dirs(): method _indent (line 177) | def _indent(text, count, *, prefix="| "): method _get_char (line 185) | def _get_char(self, char, default): method _is_file_mine (line 193) | def _is_file_mine(self, file): method _should_include_frame (line 199) | def _should_include_frame(self, frame): method _extract_frames (line 202) | def _extract_frames(self, tb, is_first, *, limit=None, from_decorator=... method _get_relevant_values (line 267) | def _get_relevant_values(self, source, frame): method _format_relevant_values (line 316) | def _format_relevant_values(self, relevant_values, colorize): method _format_value (line 342) | def _format_value(self, v): method _format_locations (line 353) | def _format_locations(self, frames_lines, *, has_introduction): method _format_exception (line 393) | def _format_exception( method _format_list (line 540) | def _format_list(self, frames): method format_exception (line 576) | def format_exception(self, type_, value, tb, *, from_decorator=False): FILE: loguru/_colorama.py function should_colorize (line 6) | def should_colorize(stream): function should_wrap (line 57) | def should_wrap(stream): function wrap (line 80) | def wrap(stream): FILE: loguru/_colorizer.py function try_formatting (line 7) | def try_formatting(*exceptions): class Style (line 26) | class Style: class Fore (line 39) | class Fore: class Back (line 60) | class Back: function ansi_escape (line 81) | def ansi_escape(codes): class TokenType (line 85) | class TokenType: class AnsiParser (line 92) | class AnsiParser: method __init__ (line 192) | def __init__(self): method strip (line 198) | def strip(tokens): method colorize (line 206) | def colorize(tokens, ansi_level): method wrap (line 222) | def wrap(tokens, *, ansi_level, color_tokens): method feed (line 237) | def feed(self, text, *, raw=False): method done (line 295) | def done(self, *, strict=True): method current_color_tokens (line 301) | def current_color_tokens(self): method _get_ansicode (line 304) | def _get_ansicode(self, tag): class ColoringMessage (line 347) | class ColoringMessage(str): method __format__ (line 350) | def __format__(self, spec): class ColoredMessage (line 354) | class ColoredMessage: method __init__ (line 355) | def __init__(self, tokens): method colorize (line 359) | def colorize(self, ansi_level): class ColoredFormat (line 363) | class ColoredFormat: method __init__ (line 364) | def __init__(self, tokens, messages_color_tokens): method strip (line 368) | def strip(self): method colorize (line 371) | def colorize(self, ansi_level): method make_coloring_message (line 374) | def make_coloring_message(self, message, *, ansi_level, colored_message): class Colorizer (line 390) | class Colorizer: method prepare_format (line 392) | def prepare_format(string): method prepare_message (line 397) | def prepare_message(string, args=(), kwargs={}): # noqa: B006 method prepare_simple_message (line 402) | def prepare_simple_message(string): method ansify (line 409) | def ansify(text): method _parse_with_formatting (line 416) | def _parse_with_formatting( method _parse_without_formatting (line 477) | def _parse_without_formatting(string, *, recursion_depth=2, recursive=... FILE: loguru/_contextvars.py function load_contextvar_class (line 4) | def load_contextvar_class(): FILE: loguru/_ctime_functions.py function load_ctime_functions (line 4) | def load_ctime_functions(): FILE: loguru/_datetime.py function _builtin_datetime_formatter (line 13) | def _builtin_datetime_formatter(is_utc, format_string, dt): function _loguru_datetime_formatter (line 19) | def _loguru_datetime_formatter(is_utc, format_string, formatters, dt): function _default_datetime_formatter (line 27) | def _default_datetime_formatter(dt): function _format_timezone (line 40) | def _format_timezone(dt, *, sep): function _compile_format (line 55) | def _compile_format(spec): class datetime (line 139) | class datetime(datetime_): # noqa: N801 method __format__ (line 140) | def __format__(self, fmt): function _fallback_tzinfo (line 144) | def _fallback_tzinfo(timestamp): function _get_tzinfo (line 152) | def _get_tzinfo(timestamp): function aware_now (line 175) | def aware_now(): FILE: loguru/_defaults.py function env (line 4) | def env(key, type_, default=None): FILE: loguru/_error_interceptor.py class ErrorInterceptor (line 5) | class ErrorInterceptor: method __init__ (line 6) | def __init__(self, should_catch, handler_id): method should_catch (line 10) | def should_catch(self): method print (line 13) | def print(self, record=None, *, exception=None): FILE: loguru/_file_sink.py function generate_rename_path (line 16) | def generate_rename_path(root, ext, creation_time): class FileDateFormatter (line 30) | class FileDateFormatter: method __init__ (line 31) | def __init__(self, datetime=None): method __format__ (line 34) | def __format__(self, spec): class Compression (line 40) | class Compression: method add_compress (line 42) | def add_compress(path_in, path_out, opener, **kwargs): method write_compress (line 47) | def write_compress(path_in, path_out, opener, **kwargs): method copy_compress (line 52) | def copy_compress(path_in, path_out, opener, **kwargs): method compression (line 58) | def compression(path_in, ext, compress_function): class Retention (line 70) | class Retention: method retention_count (line 72) | def retention_count(logs, number): method retention_age (line 80) | def retention_age(logs, seconds): class Rotation (line 87) | class Rotation: method forward_day (line 89) | def forward_day(t): method forward_weekday (line 93) | def forward_weekday(t, weekday): method forward_interval (line 100) | def forward_interval(t, interval): method rotation_size (line 104) | def rotation_size(message, file, size_limit): class RotationTime (line 108) | class RotationTime: method __init__ (line 109) | def __init__(self, step_forward, time_init=None): method __call__ (line 114) | def __call__(self, message, file): class RotationGroup (line 156) | class RotationGroup: method __init__ (line 157) | def __init__(self, rotations) -> None: method __call__ (line 160) | def __call__(self, message, file) -> bool: class FileSink (line 164) | class FileSink: method __init__ (line 165) | def __init__( method write (line 201) | def write(self, message): method stop (line 215) | def stop(self): method tasks_to_complete (line 221) | def tasks_to_complete(self): method _create_path (line 224) | def _create_path(self): method _create_dirs (line 228) | def _create_dirs(self, path): method _create_file (line 232) | def _create_file(self, path): method _close_file (line 242) | def _close_file(self): method _reopen_if_needed (line 251) | def _reopen_if_needed(self): method _terminate_file (line 269) | def _terminate_file(self, *, is_rotating=False): method _make_glob_patterns (line 304) | def _make_glob_patterns(path): method _make_rotation_function (line 317) | def _make_rotation_function(rotation): method _make_retention_function (line 358) | def _make_retention_function(retention): method _make_compression_function (line 377) | def _make_compression_function(compression): FILE: loguru/_filters.py function filter_none (line 1) | def filter_none(record): function filter_by_name (line 5) | def filter_by_name(record, parent, length): function filter_by_level (line 12) | def filter_by_level(record, level_per_module): FILE: loguru/_get_frame.py function get_frame_fallback (line 5) | def get_frame_fallback(n): function load_get_frame_function (line 15) | def load_get_frame_function(): FILE: loguru/_handler.py function prepare_colored_format (line 13) | def prepare_colored_format(format_, ansi_level): function prepare_stripped_format (line 18) | def prepare_stripped_format(format_): function memoize (line 23) | def memoize(function): class Message (line 27) | class Message(str): class Handler (line 31) | class Handler: method __init__ (line 32) | def __init__( method __repr__ (line 107) | def __repr__(self): method _protected_lock (line 111) | def _protected_lock(self): method emit (line 127) | def emit(self, record, level_id, from_decorator, is_raw, colored_messa... method stop (line 212) | def stop(self): method complete_queue (line 225) | def complete_queue(self): method tasks_to_complete (line 234) | def tasks_to_complete(self): method update_format (line 241) | def update_format(self, level_id): method levelno (line 248) | def levelno(self): method _serialize_record (line 252) | def _serialize_record(text, record): method _queued_writer (line 290) | def _queued_writer(self): method __getstate__ (line 319) | def __getstate__(self): method __setstate__ (line 330) | def __setstate__(self, state): FILE: loguru/_locks_machinery.py function create_logger_lock (line 7) | def create_logger_lock(): function create_handler_lock (line 10) | def create_handler_lock(): function acquire_locks (line 22) | def acquire_locks(): function release_locks (line 29) | def release_locks(): function create_logger_lock (line 42) | def create_logger_lock(): function create_handler_lock (line 47) | def create_handler_lock(): FILE: loguru/_logger.py function isasyncgenfunction (line 135) | def isasyncgenfunction(func): class Core (line 146) | class Core: method __init__ (line 147) | def __init__(self): method __getstate__ (line 219) | def __getstate__(self): method __setstate__ (line 225) | def __setstate__(self, state): class Logger (line 231) | class Logger: method __init__ (line 254) | def __init__(self, core, exception, depth, record, lazy, colors, raw, ... method __repr__ (line 258) | def __repr__(self): method add (line 261) | def add( method remove (line 1056) | def remove(self, handler_id=None): method complete (line 1104) | def complete(self): method catch (line 1169) | def catch( method opt (line 1371) | def opt( method bind (line 1471) | def bind(__self, **kwargs): # noqa: N805 method contextualize (line 1508) | def contextualize(__self, **kwargs): # noqa: N805 method patch (line 1552) | def patch(self, patcher): method level (line 1601) | def level(self, name, no=None, color=None, icon=None): method disable (line 1704) | def disable(self, name): method enable (line 1728) | def enable(self, name): method configure (line 1752) | def configure(self, *, handlers=None, levels=None, extra=None, patcher... method reinstall (line 1842) | def reinstall(self): method _change_activation (line 1873) | def _change_activation(self, name, status): method parse (line 1914) | def parse(file, pattern, *, cast={}, chunk=2**16): # noqa: B006 method _find_iter (line 2011) | def _find_iter(fileobj, regex, chunk): method _log (line 2028) | def _log(self, level, from_decorator, options, message, args, kwargs): method trace (line 2166) | def trace(__self, __message, *args, **kwargs): # noqa: N805 method debug (line 2170) | def debug(__self, __message, *args, **kwargs): # noqa: N805 method info (line 2174) | def info(__self, __message, *args, **kwargs): # noqa: N805 method success (line 2178) | def success(__self, __message, *args, **kwargs): # noqa: N805 method warning (line 2182) | def warning(__self, __message, *args, **kwargs): # noqa: N805 method error (line 2186) | def error(__self, __message, *args, **kwargs): # noqa: N805 method critical (line 2190) | def critical(__self, __message, *args, **kwargs): # noqa: N805 method exception (line 2194) | def exception(__self, __message, *args, **kwargs): # noqa: N805 method log (line 2204) | def log(__self, __level, __message, *args, **kwargs): # noqa: N805 method start (line 2212) | def start(self, *args, **kwargs): method stop (line 2230) | def stop(self, *args, **kwargs): FILE: loguru/_recattrs.py class RecordLevel (line 5) | class RecordLevel: method __init__ (line 20) | def __init__(self, name, no, icon): method __repr__ (line 36) | def __repr__(self): method __format__ (line 46) | def __format__(self, spec): class RecordFile (line 62) | class RecordFile: method __init__ (line 75) | def __init__(self, name, path): method __repr__ (line 88) | def __repr__(self): method __format__ (line 98) | def __format__(self, spec): class RecordThread (line 114) | class RecordThread: method __init__ (line 127) | def __init__(self, id_, name): method __repr__ (line 140) | def __repr__(self): method __format__ (line 150) | def __format__(self, spec): class RecordProcess (line 166) | class RecordProcess: method __init__ (line 179) | def __init__(self, id_, name): method __repr__ (line 192) | def __repr__(self): method __format__ (line 202) | def __format__(self, spec): class RecordException (line 218) | class RecordException( method __repr__ (line 233) | def __repr__(self): method __reduce__ (line 243) | def __reduce__(self): method _from_pickled_value (line 269) | def _from_pickled_value(cls, type_, pickled_value, traceback_): FILE: loguru/_simple_sinks.py class StreamSink (line 8) | class StreamSink: method __init__ (line 17) | def __init__(self, stream): method write (line 23) | def write(self, message): method stop (line 35) | def stop(self): method tasks_to_complete (line 40) | def tasks_to_complete(self): class StandardSink (line 53) | class StandardSink: method __init__ (line 62) | def __init__(self, handler): method write (line 65) | def write(self, message): method stop (line 101) | def stop(self): method tasks_to_complete (line 105) | def tasks_to_complete(self): class AsyncSink (line 116) | class AsyncSink: method __init__ (line 129) | def __init__(self, function, loop, error_interceptor): method write (line 135) | def write(self, message): method stop (line 161) | def stop(self): method tasks_to_complete (line 166) | def tasks_to_complete(self): method _complete_task (line 181) | async def _complete_task(self, task): method __getstate__ (line 197) | def __getstate__(self): method __setstate__ (line 202) | def __setstate__(self, state): class CallableSink (line 207) | class CallableSink: method __init__ (line 216) | def __init__(self, function): method write (line 219) | def write(self, message): method stop (line 229) | def stop(self): method tasks_to_complete (line 233) | def tasks_to_complete(self): FILE: loguru/_string_parsers.py class Frequencies (line 6) | class Frequencies: method hourly (line 14) | def hourly(t: datetime.datetime) -> datetime.datetime: method daily (line 31) | def daily(t: datetime.datetime) -> datetime.datetime: method weekly (line 48) | def weekly(t: datetime.datetime) -> datetime.datetime: method monthly (line 65) | def monthly(t: datetime.datetime) -> datetime.datetime: method yearly (line 85) | def yearly(t: datetime.datetime) -> datetime.datetime: function parse_size (line 102) | def parse_size(size: str) -> Optional[float]: function parse_duration (line 143) | def parse_duration(duration: str) -> Optional[datetime.timedelta]: function parse_frequency (line 200) | def parse_frequency(frequency: str): function parse_day (line 226) | def parse_day(day: str) -> Optional[int]: function parse_time (line 268) | def parse_time(time: str) -> datetime.time: function parse_daytime (line 316) | def parse_daytime(daytime: str) -> Optional[Tuple[int, datetime.time]]: FILE: tests/conftest.py function run (line 25) | def run(coro): function run (line 36) | def run(coro): function tmp_path (line 48) | def tmp_path(tmp_path): function _fix_positional_only_args (line 61) | def _fix_positional_only_args(item: YamlTestItem): function _fix_builtins_uppercase (line 68) | def _fix_builtins_uppercase(item: YamlTestItem): function _add_mypy_config (line 78) | def _add_mypy_config(item: YamlTestItem): function pytest_collection_modifyitems (line 87) | def pytest_collection_modifyitems(config, items): function new_event_loop_context (line 103) | def new_event_loop_context(): function set_event_loop_context (line 112) | def set_event_loop_context(loop): function parse (line 120) | def parse(text, *, strip=False, strict=True): function check_dir (line 130) | def check_dir(dir, *, files=None, size=None): class StubStream (line 146) | class StubStream(io.StringIO): method fileno (line 147) | def fileno(self): class StreamIsattyTrue (line 151) | class StreamIsattyTrue(StubStream): method isatty (line 152) | def isatty(self): class StreamIsattyFalse (line 156) | class StreamIsattyFalse(StubStream): method isatty (line 157) | def isatty(self): class StreamIsattyException (line 161) | class StreamIsattyException(StubStream): method isatty (line 162) | def isatty(self): class StreamFilenoException (line 166) | class StreamFilenoException(StreamIsattyTrue): method fileno (line 167) | def fileno(self): function default_threading_excepthook (line 172) | def default_threading_excepthook(): function check_env_variables (line 193) | def check_env_variables(): function reset_logger (line 205) | def reset_logger(): function writer (line 219) | def writer(): function sink_with_logger (line 231) | def sink_with_logger(): function freeze_time (line 245) | def freeze_time(monkeypatch): function make_logging_logger (line 346) | def make_logging_logger(name, handler, fmt="%(message)s", level="DEBUG"): function _simulate_f_globals_name_absent (line 363) | def _simulate_f_globals_name_absent(monkeypatch): function _simulate_no_frame_available (line 377) | def _simulate_no_frame_available(monkeypatch): function incomplete_frame_context (line 389) | def incomplete_frame_context(request, monkeypatch): function missing_frame_lineno_value (line 395) | def missing_frame_lineno_value(monkeypatch): function reset_multiprocessing_start_method (line 419) | def reset_multiprocessing_start_method(): FILE: tests/exceptions/source/backtrace/chained_expression_direct.py function a_decorated (line 10) | def a_decorated(): function a_not_decorated (line 17) | def a_not_decorated(): function b_decorator (line 24) | def b_decorator(): function b_context_manager (line 28) | def b_context_manager(): function b_explicit (line 33) | def b_explicit(): FILE: tests/exceptions/source/backtrace/chained_expression_indirect.py function a (line 9) | def a(): function b (line 17) | def b(): FILE: tests/exceptions/source/backtrace/chaining_first.py function a_decorated (line 10) | def a_decorated(): function a_not_decorated (line 14) | def a_not_decorated(): function b (line 18) | def b(): function c (line 22) | def c(): FILE: tests/exceptions/source/backtrace/chaining_second.py function a_decorator (line 9) | def a_decorator(): function a_context_manager (line 13) | def a_context_manager(): function a_explicit (line 18) | def a_explicit(): function b_decorated (line 26) | def b_decorated(): function b_not_decorated (line 30) | def b_not_decorated(): function c (line 34) | def c(): FILE: tests/exceptions/source/backtrace/chaining_third.py function a_decorator (line 9) | def a_decorator(): function a_context_manager (line 13) | def a_context_manager(): function a_explicit (line 17) | def a_explicit(): function b_decorator (line 21) | def b_decorator(): function b_context_manager (line 25) | def b_context_manager(): function b_explicit (line 30) | def b_explicit(): function c_decorated (line 38) | def c_decorated(): function c_not_decorated (line 42) | def c_not_decorated(): FILE: tests/exceptions/source/backtrace/enqueue_with_others_handlers.py function check_tb_sink (line 6) | def check_tb_sink(message): FILE: tests/exceptions/source/backtrace/frame_values_backward.py function a (line 12) | def a(n): function b (line 16) | def b(n): function c (line 20) | def c(n): FILE: tests/exceptions/source/backtrace/frame_values_forward.py function a (line 11) | def a(n): function b (line 15) | def b(n): function c (line 20) | def c(n): FILE: tests/exceptions/source/backtrace/function.py function a (line 10) | def a(): function b (line 14) | def b(): function c (line 18) | def c(): FILE: tests/exceptions/source/backtrace/head_recursion.py function a (line 10) | def a(n): function b (line 16) | def b(n): function c (line 23) | def c(n): FILE: tests/exceptions/source/backtrace/missing_attributes_traceback_objects.py function div (line 13) | def div(x, y): function foo (line 17) | def foo(): function make_fake (line 28) | def make_fake(tb): FILE: tests/exceptions/source/backtrace/missing_lineno_frame_objects.py function make_fake (line 22) | def make_fake(tb): function a (line 31) | def a(): function b (line 35) | def b(): FILE: tests/exceptions/source/backtrace/nested.py function a (line 9) | def a(x): function b (line 20) | def b(x): function c (line 31) | def c(x): FILE: tests/exceptions/source/backtrace/nested_chained_catch_up.py function foo (line 10) | def foo(): function bar (line 15) | def bar(): function main (line 20) | def main(): FILE: tests/exceptions/source/backtrace/nested_decorator_catch_up.py function foo (line 11) | def foo(): function bar (line 16) | def bar(): FILE: tests/exceptions/source/backtrace/nested_explicit_catch_up.py function foo (line 10) | def foo(): function bar (line 15) | def bar(): FILE: tests/exceptions/source/backtrace/nested_wrapping.py function f (line 9) | def f(i): function a (line 15) | def a(x): FILE: tests/exceptions/source/backtrace/no_tb.py function f (line 9) | def f(): FILE: tests/exceptions/source/backtrace/not_enough_arguments.py function decorated (line 10) | def decorated(x, y, z): function not_decorated (line 14) | def not_decorated(x, y, z): FILE: tests/exceptions/source/backtrace/raising_recursion.py function a (line 10) | def a(n): function b (line 16) | def b(n): function c (line 23) | def c(n): FILE: tests/exceptions/source/backtrace/suppressed_expression_direct.py function a (line 9) | def a(x, y): function b_decorated (line 14) | def b_decorated(): function b_not_decorated (line 21) | def b_not_decorated(): function c_decorator (line 28) | def c_decorator(): function c_context_manager (line 32) | def c_context_manager(): function c_explicit (line 37) | def c_explicit(): FILE: tests/exceptions/source/backtrace/suppressed_expression_indirect.py function a (line 9) | def a(x, y): function b (line 13) | def b(): function c_decorated (line 21) | def c_decorated(): function c_not_decorated (line 25) | def c_not_decorated(): FILE: tests/exceptions/source/backtrace/tail_recursion.py function a (line 10) | def a(n): function b (line 15) | def b(n): function c (line 21) | def c(n): FILE: tests/exceptions/source/backtrace/too_many_arguments.py function decorated (line 10) | def decorated(): function not_decorated (line 14) | def not_decorated(): FILE: tests/exceptions/source/diagnose/assertion_error.py function foo (line 9) | def foo(abc, xyz): FILE: tests/exceptions/source/diagnose/assertion_error_custom.py function foo (line 9) | def foo(abc, xyz): FILE: tests/exceptions/source/diagnose/assertion_error_in_string.py function foo (line 9) | def foo(abc, xyz): FILE: tests/exceptions/source/diagnose/attributes.py class Obj (line 10) | class Obj: method forbidden (line 12) | def forbidden(self): function foo (line 20) | def foo(): FILE: tests/exceptions/source/diagnose/chained_both.py function div (line 9) | def div(x, y): function cause (line 13) | def cause(x, y): function context (line 20) | def context(x, y): FILE: tests/exceptions/source/diagnose/encoding.py function _deep (line 9) | def _deep(val): function div (line 13) | def div(): FILE: tests/exceptions/source/diagnose/global_variable.py function func (line 13) | def func(): FILE: tests/exceptions/source/diagnose/keyword_argument.py function f (line 9) | def f(x): FILE: tests/exceptions/source/diagnose/multilines_repr.py class A (line 9) | class A: method __repr__ (line 10) | def __repr__(self): function multiline (line 14) | def multiline(): FILE: tests/exceptions/source/diagnose/no_error_message.py function foo (line 9) | def foo(): function bar (line 13) | def bar(): FILE: tests/exceptions/source/diagnose/parenthesis.py class XYZ (line 10) | class XYZ: function a (line 14) | def a(b, c): function b (line 20) | def b(): function c (line 25) | def c(): function d (line 31) | def d(j): function e (line 40) | def e(): FILE: tests/exceptions/source/diagnose/source_multilines.py function bug_1 (line 10) | def bug_1(n): function bug_2 (line 15) | def bug_2(a, b, c): function bug_3 (line 20) | def bug_3(string): function bug_4 (line 25) | def bug_4(): FILE: tests/exceptions/source/diagnose/syntax_highlighting.py function a (line 10) | def a(): function b (line 14) | def b(): function c (line 18) | def c(): function d (line 22) | def d(): function e (line 26) | def e(x): FILE: tests/exceptions/source/diagnose/truncating.py function div (line 9) | def div(): FILE: tests/exceptions/source/diagnose/unprintable_object.py class Object (line 9) | class Object: method __repr__ (line 10) | def __repr__(self): FILE: tests/exceptions/source/modern/decorate_async_generator.py function test_decorate_async_generator (line 11) | def test_decorate_async_generator(): function test_decorate_async_generator_with_error (line 27) | def test_decorate_async_generator_with_error(): function test_decorate_async_generator_with_error_reraised (line 43) | def test_decorate_async_generator_with_error_reraised(): function test_decorate_async_generator_then_async_send (line 65) | def test_decorate_async_generator_then_async_send(): function test_decorate_async_generator_then_async_throw (line 85) | def test_decorate_async_generator_then_async_throw(): FILE: tests/exceptions/source/modern/exception_formatting_async_generator.py function foo (line 13) | async def foo(a, b): FILE: tests/exceptions/source/modern/exception_group_catch.py function a (line 12) | def a(): function b (line 18) | def b(): FILE: tests/exceptions/source/modern/f_string.py function hello (line 10) | def hello(): function world (line 14) | def world(): FILE: tests/exceptions/source/modern/grouped_as_cause_and_context.py function a (line 9) | def a(): function b (line 13) | def b(): function main (line 18) | def main(): FILE: tests/exceptions/source/modern/grouped_max_depth.py function main (line 6) | def main(): FILE: tests/exceptions/source/modern/grouped_max_length.py function main (line 6) | def main(): FILE: tests/exceptions/source/modern/grouped_nested.py function divide_by_zero (line 5) | def divide_by_zero(): function raise_value_error (line 9) | def raise_value_error(value): function main (line 14) | def main(): FILE: tests/exceptions/source/modern/grouped_simple.py function a (line 9) | def a(): function b (line 15) | def b(): function c (line 19) | def c(f): function main (line 24) | def main(): FILE: tests/exceptions/source/modern/grouped_with_cause_and_context.py function a (line 9) | def a(): function main (line 14) | def main(): FILE: tests/exceptions/source/modern/match_statement.py function case (line 9) | def case(x): function match (line 15) | def match(x): FILE: tests/exceptions/source/modern/positional_only_argument.py function foo (line 10) | def foo(a, /, b, *, c, **d): 1 / 0 function main (line 13) | def main(): FILE: tests/exceptions/source/modern/type_hints.py function foo (line 15) | def foo(a: int, b: Tuple[Name, float], c: "Name") -> T: 1 / 0 function main (line 18) | def main(): FILE: tests/exceptions/source/modern/walrus_operator.py function foo (line 7) | def foo(): function bar (line 12) | def bar(): function main (line 17) | def main(): FILE: tests/exceptions/source/others/assertionerror_without_traceback.py function test (line 6) | def test(diagnose, backtrace): FILE: tests/exceptions/source/others/broken_but_decorated_repr.py class Foo (line 9) | class Foo: method __repr__ (line 11) | def __repr__(self): class Bar (line 15) | class Bar: method __repr__ (line 16) | def __repr__(self): FILE: tests/exceptions/source/others/catch_as_decorator_with_parentheses.py function c (line 10) | def c(a, b): FILE: tests/exceptions/source/others/catch_as_decorator_without_parentheses.py function c (line 10) | def c(a, b=0): FILE: tests/exceptions/source/others/catch_as_function.py function a (line 9) | def a(): FILE: tests/exceptions/source/others/catch_message.py function a (line 9) | def a(): FILE: tests/exceptions/source/others/exception_formatting_coroutine.py function foo (line 13) | async def foo(a, b): FILE: tests/exceptions/source/others/exception_formatting_function.py function a (line 13) | def a(a, b): FILE: tests/exceptions/source/others/exception_formatting_generator.py function foo (line 13) | def foo(a, b): FILE: tests/exceptions/source/others/exception_in_property.py class A (line 9) | class A: method value (line 11) | def value(self): FILE: tests/exceptions/source/others/handler_formatting_with_context_manager.py function a (line 15) | def a(): FILE: tests/exceptions/source/others/handler_formatting_with_decorator.py function a (line 16) | def a(): FILE: tests/exceptions/source/others/level_name.py function a (line 11) | def a(): FILE: tests/exceptions/source/others/level_number.py function a (line 11) | def a(): FILE: tests/exceptions/source/others/message_formatting_with_context_manager.py function a (line 9) | def a(): FILE: tests/exceptions/source/others/message_formatting_with_decorator.py function a (line 10) | def a(): FILE: tests/exceptions/source/others/nested_with_reraise.py function foo (line 13) | def foo(a, b): function bar (line 18) | def bar(x, y): function baz (line 25) | def baz(): FILE: tests/exceptions/source/others/recursion_error.py function recursive (line 14) | def recursive(): FILE: tests/exceptions/source/others/repeated_lines.py function recursive (line 13) | def recursive(outer, inner): FILE: tests/exceptions/source/others/syntaxerror_without_traceback.py function test (line 6) | def test(diagnose, backtrace): FILE: tests/exceptions/source/others/sys_tracebacklimit.py function a (line 12) | def a(): function b (line 16) | def b(): function c (line 20) | def c(): function d (line 24) | def d(): function e (line 28) | def e(): function f (line 32) | def f(): function g (line 36) | def g(): function h (line 40) | def h(): function i (line 44) | def i(): function j (line 48) | def j(a, b): FILE: tests/exceptions/source/others/sys_tracebacklimit_negative.py function a (line 12) | def a(): function b (line 16) | def b(): function c (line 20) | def c(): function d (line 24) | def d(): function e (line 28) | def e(): function f (line 32) | def f(): function g (line 36) | def g(): function h (line 40) | def h(): function i (line 44) | def i(): function j (line 48) | def j(a, b): FILE: tests/exceptions/source/others/sys_tracebacklimit_none.py function a (line 12) | def a(): function b (line 16) | def b(): function c (line 20) | def c(): function d (line 24) | def d(): function e (line 28) | def e(): function f (line 32) | def f(): function g (line 36) | def g(): function h (line 40) | def h(): function i (line 44) | def i(): function j (line 48) | def j(a, b): FILE: tests/exceptions/source/others/sys_tracebacklimit_unset.py function a (line 12) | def a(): function b (line 16) | def b(): function c (line 20) | def c(): function d (line 24) | def d(): function e (line 28) | def e(): function f (line 32) | def f(): function g (line 36) | def g(): function h (line 40) | def h(): function i (line 44) | def i(): function j (line 48) | def j(a, b): FILE: tests/exceptions/source/others/zerodivisionerror_without_traceback.py function test (line 6) | def test(diagnose, backtrace): FILE: tests/exceptions/source/ownership/assertion_from_lib.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/assertion_from_local.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/callback.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/catch_decorator.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/catch_decorator_from_lib.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/decorated_callback.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/direct.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/indirect.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/string_lib.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/string_source.py function test (line 6) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/syntaxerror.py function test (line 9) | def test(*, backtrace, colorize, diagnose): FILE: tests/exceptions/source/ownership/usersite/somelib/__init__.py function divide (line 1) | def divide(x, y): function divide_indirect (line 5) | def divide_indirect(a, b): function callme (line 9) | def callme(callback): function execute (line 13) | def execute(): function syntaxerror (line 17) | def syntaxerror(): function assertionerror (line 21) | def assertionerror(x, y): FILE: tests/test_activation.py function test_disable (line 20) | def test_disable(writer, name, should_log): function test_enable (line 46) | def test_enable(writer, name, should_log): function test_log_before_enable (line 59) | def test_log_before_enable(writer): function test_log_before_disable (line 69) | def test_log_before_disable(writer): function test_multiple_activations (line 79) | def test_multiple_activations(): function test_log_before_enable_incomplete_frame_context (line 110) | def test_log_before_enable_incomplete_frame_context(writer, incomplete_f... function test_log_before_disable_incomplete_frame_context (line 120) | def test_log_before_disable_incomplete_frame_context(writer, incomplete_... function test_incomplete_frame_context_with_others (line 130) | def test_incomplete_frame_context_with_others(writer, incomplete_frame_c... function test_invalid_enable_name (line 145) | def test_invalid_enable_name(name): function test_invalid_disable_name (line 151) | def test_invalid_disable_name(name): FILE: tests/test_add_option_backtrace.py function test_backtrace (line 6) | def test_backtrace(writer): FILE: tests/test_add_option_catch.py function broken_sink (line 12) | def broken_sink(m): function test_catch_is_true (line 16) | def test_catch_is_true(capsys): function test_catch_is_false (line 24) | def test_catch_is_false(capsys): function test_no_sys_stderr (line 32) | def test_no_sys_stderr(capsys, monkeypatch): function test_broken_sys_stderr (line 42) | def test_broken_sys_stderr(capsys, monkeypatch): function test_encoding_error (line 55) | def test_encoding_error(capsys): function test_unprintable_record (line 73) | def test_unprintable_record(writer, capsys): function test_broken_sink_message (line 95) | def test_broken_sink_message(capsys, enqueue): function test_broken_sink_caught_keep_working (line 111) | def test_broken_sink_caught_keep_working(enqueue): function test_broken_sink_not_caught_enqueue (line 129) | def test_broken_sink_not_caught_enqueue(): FILE: tests/test_add_option_colorize.py function test_colorized_format (line 19) | def test_colorized_format(format, message, expected, writer): function test_decolorized_format (line 34) | def test_decolorized_format(format, message, expected, writer): function test_colorize_stream (line 43) | def test_colorize_stream(stream): function test_decolorize_stream (line 52) | def test_decolorize_stream(stream): function test_automatic_detection_when_stream_is_a_tty (line 59) | def test_automatic_detection_when_stream_is_a_tty(): function test_automatic_detection_when_stream_is_not_a_tty (line 66) | def test_automatic_detection_when_stream_is_not_a_tty(): function test_automatic_detection_when_stream_has_no_isatty (line 73) | def test_automatic_detection_when_stream_has_no_isatty(): function test_override_no_color (line 80) | def test_override_no_color(monkeypatch): function test_override_force_color (line 89) | def test_override_force_color(monkeypatch): FILE: tests/test_add_option_context.py function test_using_multiprocessing_directly_if_context_is_none (line 10) | def test_using_multiprocessing_directly_if_context_is_none(): function test_fork_context_as_string (line 17) | def test_fork_context_as_string(context_name): function test_spawn_context_as_string (line 25) | def test_spawn_context_as_string(): function test_fork_context_as_object (line 35) | def test_fork_context_as_object(context_name): function test_spawn_context_as_object (line 43) | def test_spawn_context_as_object(): function test_global_start_method_is_none_if_enqueue_is_false (line 51) | def test_global_start_method_is_none_if_enqueue_is_false(): function test_invalid_context_name (line 56) | def test_invalid_context_name(): function test_invalid_context_object (line 62) | def test_invalid_context_object(context): FILE: tests/test_add_option_diagnose.py function test_diagnose (line 6) | def test_diagnose(writer): FILE: tests/test_add_option_enqueue.py class NotPicklable (line 13) | class NotPicklable: method __getstate__ (line 14) | def __getstate__(self): method __setstate__ (line 17) | def __setstate__(self, state): class NotPicklableTypeError (line 21) | class NotPicklableTypeError: method __getstate__ (line 22) | def __getstate__(self): method __setstate__ (line 25) | def __setstate__(self, state): class NotUnpicklable (line 29) | class NotUnpicklable: method __getstate__ (line 30) | def __getstate__(self): method __setstate__ (line 33) | def __setstate__(self, state): class NotUnpicklableTypeError (line 37) | class NotUnpicklableTypeError: method __getstate__ (line 38) | def __getstate__(self): method __setstate__ (line 41) | def __setstate__(self, state): class NotWritable (line 45) | class NotWritable: method write (line 46) | def write(self, message): function test_enqueue (line 52) | def test_enqueue(): function test_enqueue_with_exception (line 67) | def test_enqueue_with_exception(): function test_caught_exception_queue_put (line 90) | def test_caught_exception_queue_put(writer, capsys): function test_caught_exception_queue_get (line 108) | def test_caught_exception_queue_get(writer, capsys): function test_caught_exception_sink_write (line 126) | def test_caught_exception_sink_write(capsys): function test_not_caught_exception_queue_put (line 143) | def test_not_caught_exception_queue_put(writer, capsys): function test_not_caught_exception_queue_get (line 159) | def test_not_caught_exception_queue_get(writer, capsys): function test_not_caught_exception_sink_write (line 178) | def test_not_caught_exception_sink_write(capsys): function test_not_caught_exception_sink_write_then_complete (line 196) | def test_not_caught_exception_sink_write_then_complete(capsys): function test_not_caught_exception_queue_get_then_complete (line 214) | def test_not_caught_exception_queue_get_then_complete(writer, capsys): function test_wait_for_all_messages_enqueued (line 233) | def test_wait_for_all_messages_enqueued(capsys): function test_logging_not_picklable_exception (line 252) | def test_logging_not_picklable_exception(exception_value): function test_logging_not_unpicklable_exception (line 275) | def test_logging_not_unpicklable_exception(exception_value): FILE: tests/test_add_option_filter.py function test_filtered_in (line 28) | def test_filtered_in(filter, writer): function test_filtered_out (line 52) | def test_filtered_out(filter, writer): function test_filtered_in_incomplete_frame_context (line 71) | def test_filtered_in_incomplete_frame_context(writer, filter, incomplete... function test_filtered_out_incomplete_frame_context (line 88) | def test_filtered_out_incomplete_frame_context(writer, filter, incomplet... function test_invalid_filter (line 95) | def test_invalid_filter(writer, filter): function test_invalid_filter_dict_level_types (line 101) | def test_invalid_filter_dict_level_types(writer, filter): function test_invalid_filter_dict_module_types (line 107) | def test_invalid_filter_dict_module_types(writer, filter): function test_invalid_filter_dict_values_unknown_level (line 113) | def test_invalid_filter_dict_values_unknown_level(writer, filter): function test_invalid_filter_dict_values_wrong_integer_value (line 124) | def test_invalid_filter_dict_values_wrong_integer_value(writer): function test_filter_dict_with_custom_level (line 135) | def test_filter_dict_with_custom_level(writer): function test_invalid_filter_builtin (line 143) | def test_invalid_filter_builtin(writer): FILE: tests/test_add_option_format.py function test_format (line 17) | def test_format(message, format, expected, writer): function test_progressive_format (line 23) | def test_progressive_format(writer): function test_function_format_without_exception (line 39) | def test_function_format_without_exception(writer): function test_function_format_with_exception (line 48) | def test_function_format_with_exception(writer): function test_invalid_format (line 60) | def test_invalid_format(writer, format): function test_invalid_markups (line 66) | def test_invalid_markups(writer, format): function test_markup_in_field (line 74) | def test_markup_in_field(writer, colorize): function test_invalid_format_builtin (line 85) | def test_invalid_format_builtin(writer): FILE: tests/test_add_option_kwargs.py function test_file_mode_a (line 6) | def test_file_mode_a(tmp_path): function test_file_mode_w (line 14) | def test_file_mode_w(tmp_path): function test_file_auto_buffering (line 22) | def test_file_auto_buffering(tmp_path): function test_file_line_buffering (line 42) | def test_file_line_buffering(tmp_path): function test_invalid_function_kwargs (line 51) | def test_invalid_function_kwargs(): function test_invalid_file_object_kwargs (line 59) | def test_invalid_file_object_kwargs(): function test_invalid_file_kwargs (line 73) | def test_invalid_file_kwargs(): function test_invalid_coroutine_kwargs (line 78) | def test_invalid_coroutine_kwargs(): FILE: tests/test_add_option_level.py function test_level_low_enough (line 7) | def test_level_low_enough(writer, level): function test_level_too_high (line 14) | def test_level_too_high(writer, level): function test_invalid_level_type (line 21) | def test_invalid_level_type(writer, level): function test_invalid_level_value (line 26) | def test_invalid_level_value(writer): function test_unknown_level (line 33) | def test_unknown_level(writer): FILE: tests/test_add_option_serialize.py class JsonSink (line 8) | class JsonSink: method __init__ (line 9) | def __init__(self): method write (line 14) | def write(self, message): function test_serialize (line 20) | def test_serialize(): function test_serialize_non_ascii_characters (line 29) | def test_serialize_non_ascii_characters(): function test_serialize_exception (line 40) | def test_serialize_exception(): function test_serialize_exception_without_context (line 60) | def test_serialize_exception_without_context(): function test_serialize_exception_none_tuple (line 77) | def test_serialize_exception_none_tuple(): function test_serialize_exception_instance (line 94) | def test_serialize_exception_instance(): function test_serialize_with_catch_decorator (line 111) | def test_serialize_with_catch_decorator(): function test_serialize_with_record_option (line 127) | def test_serialize_with_record_option(): function test_serialize_not_serializable (line 137) | def test_serialize_not_serializable(): FILE: tests/test_add_sinks.py function log (line 17) | def log(sink, rep=1): function async_log (line 26) | async def async_log(sink, rep=1): function test_stdout_sink (line 37) | def test_stdout_sink(rep, capsys): function test_stderr_sink (line 45) | def test_stderr_sink(rep, capsys): function test_devnull (line 53) | def test_devnull(rep): function test_file_path_sink (line 59) | def test_file_path_sink(rep, path_type, tmp_path): function test_file_opened_sink (line 67) | def test_file_opened_sink(rep, tmp_path): function test_file_sink_folder_creation (line 75) | def test_file_sink_folder_creation(rep, tmp_path): function test_function_sink (line 82) | def test_function_sink(rep): function test_coroutine_sink (line 93) | def test_coroutine_sink(capsys, rep): function test_file_object_sink (line 107) | def test_file_object_sink(rep): function test_standard_handler_sink (line 121) | def test_standard_handler_sink(rep): function test_flush (line 134) | def test_flush(rep): function test_file_sink_ascii_encoding (line 149) | def test_file_sink_ascii_encoding(tmp_path): function test_file_sink_utf8_encoding (line 157) | def test_file_sink_utf8_encoding(tmp_path): function test_file_sink_default_encoding (line 165) | def test_file_sink_default_encoding(tmp_path): function test_disabled_logger_in_sink (line 173) | def test_disabled_logger_in_sink(sink_with_logger): function test_custom_sink_invalid_flush (line 182) | def test_custom_sink_invalid_flush(capsys, flush): function test_custom_sink_invalid_stop (line 199) | def test_custom_sink_invalid_stop(capsys, stop): function test_custom_sink_invalid_complete (line 217) | def test_custom_sink_invalid_complete(capsys, complete): function test_invalid_sink (line 238) | def test_invalid_sink(sink): function test_deprecated_start_and_stop (line 243) | def test_deprecated_start_and_stop(writer): FILE: tests/test_ansimarkup_basic.py function test_styles (line 18) | def test_styles(text, expected): function test_background_colors (line 31) | def test_background_colors(text, expected): function test_foreground_colors (line 44) | def test_foreground_colors(text, expected): function test_nested (line 91) | def test_nested(text, expected): function test_strict_parsing (line 96) | def test_strict_parsing(text): function test_permissive_parsing (line 111) | def test_permissive_parsing(text, expected): function test_autoclose (line 138) | def test_autoclose(text, expected): function test_escaping (line 156) | def test_escaping(text, expected): function test_mismatched_error (line 174) | def test_mismatched_error(text, strip): function test_unbalanced_error (line 185) | def test_unbalanced_error(text, strip): function test_unclosed_error (line 192) | def test_unclosed_error(text, strip): function test_invalid_color (line 217) | def test_invalid_color(text, strip): function test_strip (line 238) | def test_strip(text, expected): FILE: tests/test_ansimarkup_extended.py function test_background_colors (line 16) | def test_background_colors(text, expected): function test_foreground_colors (line 29) | def test_foreground_colors(text, expected): function test_8bit_colors (line 41) | def test_8bit_colors(text, expected): function test_hex_colors (line 54) | def test_hex_colors(text, expected): function test_hex_short_code_equals_long_code (line 70) | def test_hex_short_code_equals_long_code(layer, short_code, long_code): function test_rgb_colors (line 83) | def test_rgb_colors(text, expected): function test_nested (line 115) | def test_nested(text, expected): function test_tricky_parse (line 135) | def test_tricky_parse(text, expected): function test_invalid_color (line 155) | def test_invalid_color(text, strip): function test_invalid_hex (line 177) | def test_invalid_hex(text, strip): function test_invalid_8bit (line 190) | def test_invalid_8bit(text, strip): function test_invalid_rgb (line 212) | def test_invalid_rgb(text, strip): function test_strip (line 231) | def test_strip(text, expected): function test_tricky_strip (line 251) | def test_tricky_strip(text, expected): FILE: tests/test_bind.py function test_bind_after_add (line 6) | def test_bind_after_add(writer): function test_bind_before_add (line 14) | def test_bind_before_add(writer): function test_add_using_bound (line 22) | def test_add_using_bound(writer): function test_not_override_parent_logger (line 32) | def test_not_override_parent_logger(writer): function test_override_previous_bound (line 43) | def test_override_previous_bound(writer): function test_no_conflict (line 49) | def test_no_conflict(writer): function test_bind_and_add_level (line 63) | def test_bind_and_add_level(writer, using_bound): function test_override_configured (line 78) | def test_override_configured(writer): FILE: tests/test_colorama.py function clear_environment (line 20) | def clear_environment(): function patch_colorama (line 28) | def patch_colorama(monkeypatch): function test_stream_wrapped_on_windows_if_no_vt_support (line 44) | def test_stream_wrapped_on_windows_if_no_vt_support(patched, monkeypatch... function test_stream_not_wrapped_on_windows_if_vt_support (line 56) | def test_stream_not_wrapped_on_windows_if_vt_support(patched, monkeypatc... function test_stream_is_none (line 66) | def test_stream_is_none(): function test_is_a_tty (line 70) | def test_is_a_tty(): function test_is_not_a_tty (line 74) | def test_is_not_a_tty(): function test_is_a_tty_exception (line 78) | def test_is_a_tty_exception(): function test_pycharm_fixed (line 92) | def test_pycharm_fixed(monkeypatch, patched, expected): function test_github_actions_fixed (line 110) | def test_github_actions_fixed(monkeypatch, patched, expected): function test_mintty_fixed_windows (line 130) | def test_mintty_fixed_windows(monkeypatch, patched, expected): function test_dumb_term_not_colored (line 148) | def test_dumb_term_not_colored(monkeypatch, patched, expected): function test_honor_no_color_standard (line 173) | def test_honor_no_color_standard(monkeypatch, patched, no_color, expected): function test_honor_force_color_standard (line 198) | def test_honor_force_color_standard(monkeypatch, patched, force_color, e... function test_no_color_takes_precedence_over_force_color (line 206) | def test_no_color_takes_precedence_over_force_color(monkeypatch): function test_mintty_not_fixed_linux (line 232) | def test_mintty_not_fixed_linux(monkeypatch, patched, expected): function test_jupyter_fixed (line 252) | def test_jupyter_fixed(monkeypatch, patched, out_class, expected): function test_jupyter_missing_lib (line 274) | def test_jupyter_missing_lib(monkeypatch): function test_dont_wrap_on_linux (line 285) | def test_dont_wrap_on_linux(monkeypatch, patched, patch_colorama): function test_dont_wrap_if_not_original_stdout_or_stderr (line 295) | def test_dont_wrap_if_not_original_stdout_or_stderr(monkeypatch, patched... function test_dont_wrap_if_terminal_has_vt_support (line 305) | def test_dont_wrap_if_terminal_has_vt_support(monkeypatch, patched, patc... function test_dont_wrap_if_winapi_false (line 317) | def test_dont_wrap_if_winapi_false(monkeypatch, patched, patch_colorama): function test_wrap_if_winapi_true_and_no_vt_support (line 329) | def test_wrap_if_winapi_true_and_no_vt_support(monkeypatch, patched, pat... function test_wrap_if_winapi_true_and_vt_check_fails (line 342) | def test_wrap_if_winapi_true_and_vt_check_fails(monkeypatch, patched, pa... function test_wrap_if_winapi_true_and_stream_has_no_fileno (line 355) | def test_wrap_if_winapi_true_and_stream_has_no_fileno(monkeypatch, patch... function test_wrap_if_winapi_true_and_old_colorama_version (line 367) | def test_wrap_if_winapi_true_and_old_colorama_version(monkeypatch, patch... FILE: tests/test_configure.py function test_handlers (line 8) | def test_handlers(capsys, tmp_path): function test_levels (line 26) | def test_levels(writer): function test_extra (line 38) | def test_extra(writer): function test_patcher (line 49) | def test_patcher(writer): function test_activation (line 58) | def test_activation(writer): function test_dict_unpacking (line 69) | def test_dict_unpacking(writer): function test_returned_ids (line 85) | def test_returned_ids(capsys): function test_dont_reset_by_default (line 113) | def test_dont_reset_by_default(writer): function test_reset_previous_handlers (line 125) | def test_reset_previous_handlers(writer): function test_reset_previous_extra (line 135) | def test_reset_previous_extra(writer): function test_reset_previous_patcher (line 145) | def test_reset_previous_patcher(writer): function test_dont_reset_previous_levels (line 155) | def test_dont_reset_previous_levels(writer): function test_configure_handler_using_new_level (line 167) | def test_configure_handler_using_new_level(writer): function test_configure_filter_using_new_level (line 179) | def test_configure_filter_using_new_level(writer): function test_configure_before_bind (line 191) | def test_configure_before_bind(writer): function test_configure_after_bind (line 206) | def test_configure_after_bind(writer): FILE: tests/test_contextualize.py function test_contextualize (line 12) | def test_contextualize(writer): function test_contextualize_as_decorator (line 21) | def test_contextualize_as_decorator(writer): function test_contextualize_in_function (line 33) | def test_contextualize_in_function(writer): function test_contextualize_reset (line 45) | def test_contextualize_reset(): function test_contextualize_async (line 68) | def test_contextualize_async(writer): function test_contextualize_thread (line 92) | def test_contextualize_thread(writer): function test_contextualize_before_bind (line 120) | def test_contextualize_before_bind(writer): function test_contextualize_after_bind (line 134) | def test_contextualize_after_bind(writer): function test_contextualize_using_bound (line 147) | def test_contextualize_using_bound(writer): function test_contextualize_before_configure (line 161) | def test_contextualize_before_configure(writer): function test_contextualize_after_configure (line 174) | def test_contextualize_after_configure(writer): function test_nested_contextualize (line 186) | def test_nested_contextualize(writer): function test_context_reset_despite_error (line 201) | def test_context_reset_despite_error(writer): function test_contextvars_fallback_352 (line 216) | def test_contextvars_fallback_352(monkeypatch): FILE: tests/test_coroutine_sink.py function async_writer (line 15) | async def async_writer(msg): class AsyncWriter (line 20) | class AsyncWriter: method __call__ (line 21) | async def __call__(self, msg): function test_coroutine_function (line 26) | def test_coroutine_function(capsys): function test_async_callable_sink (line 40) | def test_async_callable_sink(capsys): function test_concurrent_execution (line 54) | def test_concurrent_execution(capsys): function test_recursive_coroutine (line 72) | def test_recursive_coroutine(capsys): function test_using_another_event_loop (line 90) | def test_using_another_event_loop(capsys): function test_run_multiple_different_loops (line 105) | def test_run_multiple_different_loops(capsys): function test_run_multiple_same_loop (line 121) | def test_run_multiple_same_loop(capsys): function test_using_sink_without_running_loop_not_none (line 137) | def test_using_sink_without_running_loop_not_none(capsys): function test_using_sink_without_running_loop_none (line 151) | def test_using_sink_without_running_loop_none(capsys): function test_global_loop_not_used (line 166) | def test_global_loop_not_used(capsys): function test_complete_in_another_run (line 182) | def test_complete_in_another_run(capsys): function test_tasks_cancelled_on_remove (line 201) | def test_tasks_cancelled_on_remove(capsys): function test_remove_without_tasks (line 217) | def test_remove_without_tasks(capsys): function test_complete_without_tasks (line 231) | def test_complete_without_tasks(capsys): function test_complete_stream_noop (line 243) | def test_complete_stream_noop(capsys): function test_complete_file_noop (line 261) | def test_complete_file_noop(tmp_path): function test_complete_function_noop (line 279) | def test_complete_function_noop(): function test_complete_standard_noop (line 301) | def test_complete_standard_noop(capsys): function test_exception_in_coroutine_caught (line 319) | def test_exception_in_coroutine_caught(capsys): function test_exception_in_coroutine_not_caught (line 341) | def test_exception_in_coroutine_not_caught(capsys, caplog): function test_exception_in_coroutine_during_complete_caught (line 369) | def test_exception_in_coroutine_during_complete_caught(capsys): function test_exception_in_coroutine_during_complete_not_caught (line 391) | def test_exception_in_coroutine_during_complete_not_caught(capsys, caplog): function test_enqueue_coroutine_loop (line 420) | def test_enqueue_coroutine_loop(capsys): function test_enqueue_coroutine_from_inside_coroutine_without_loop (line 435) | def test_enqueue_coroutine_from_inside_coroutine_without_loop(capsys): function test_custom_complete_function (line 450) | def test_custom_complete_function(capsys): function test_complete_from_another_loop (line 477) | def test_complete_from_another_loop(capsys, loop_is_none): function test_complete_from_multiple_threads_loop_is_none (line 501) | def test_complete_from_multiple_threads_loop_is_none(capsys): function test_complete_from_multiple_threads_loop_is_not_none (line 529) | def test_complete_from_multiple_threads_loop_is_not_none(capsys): function test_complete_and_sink_write_concurrency (line 563) | def test_complete_and_sink_write_concurrency(): function test_complete_and_contextualize_concurrency (line 592) | def test_complete_and_contextualize_concurrency(): function async_subworker (line 624) | async def async_subworker(logger_): function async_mainworker (line 629) | async def async_mainworker(logger_): function subworker (line 634) | def subworker(logger_): class Writer (line 639) | class Writer: method __init__ (line 640) | def __init__(self): method write (line 643) | async def write(self, message): function test_complete_with_sub_processes (line 647) | def test_complete_with_sub_processes(capsys): function test_invalid_coroutine_sink_if_no_loop_with_enqueue (line 669) | def test_invalid_coroutine_sink_if_no_loop_with_enqueue(): FILE: tests/test_datetime.py function _expected_fallback_time_zone (line 19) | def _expected_fallback_time_zone(): function test_formatting (line 130) | def test_formatting(writer, freeze_time, time_format, date, timezone, ex... function test_formatting_timezone_offset_down_to_the_second (line 147) | def test_formatting_timezone_offset_down_to_the_second( function test_locale_formatting (line 158) | def test_locale_formatting(writer, freeze_time): function test_stdout_formatting (line 166) | def test_stdout_formatting(freeze_time, capsys): function test_file_formatting (line 175) | def test_file_formatting(freeze_time, tmp_path): function test_missing_struct_time_fields (line 182) | def test_missing_struct_time_fields(writer, freeze_time): function test_value_of_gmtoff_is_invalid (line 194) | def test_value_of_gmtoff_is_invalid(writer, freeze_time, tm_gmtoff): function test_localtime_raising_exception (line 206) | def test_localtime_raising_exception(writer, freeze_time, monkeypatch, e... function test_update_with_zone_info (line 232) | def test_update_with_zone_info(writer, freeze_time, date, expected_result): function test_freezegun_mocking (line 247) | def test_freezegun_mocking(writer): function test_invalid_time_format (line 259) | def test_invalid_time_format(writer, time_format): FILE: tests/test_deepcopy.py function print_ (line 6) | def print_(message): function test_add_sink_after_deepcopy (line 10) | def test_add_sink_after_deepcopy(capsys): function test_add_sink_before_deepcopy (line 23) | def test_add_sink_before_deepcopy(capsys): function test_remove_from_original (line 36) | def test_remove_from_original(capsys): function test_remove_from_copy (line 50) | def test_remove_from_copy(capsys): FILE: tests/test_defaults.py function test_string (line 7) | def test_string(value, monkeypatch): function test_bool_positive (line 15) | def test_bool_positive(value, monkeypatch): function test_bool_negative (line 23) | def test_bool_negative(value, monkeypatch): function test_int (line 30) | def test_int(monkeypatch): function test_invalid_int (line 38) | def test_invalid_int(value, monkeypatch): function test_invalid_bool (line 50) | def test_invalid_bool(value, monkeypatch): function test_invalid_type (line 61) | def test_invalid_type(monkeypatch): FILE: tests/test_exceptions_catch.py function test_caret_not_masked (line 14) | def test_caret_not_masked(writer, diagnose): function test_no_caret_if_no_backtrace (line 28) | def test_no_caret_if_no_backtrace(writer, diagnose): function test_sink_encoding (line 42) | def test_sink_encoding(writer, encoding): function test_file_sink_ascii_encoding (line 68) | def test_file_sink_ascii_encoding(tmp_path): function test_file_sink_utf8_encoding (line 84) | def test_file_sink_utf8_encoding(tmp_path): function test_has_sys_real_prefix (line 100) | def test_has_sys_real_prefix(writer, monkeypatch): function test_no_sys_real_prefix (line 113) | def test_no_sys_real_prefix(writer, monkeypatch): function test_has_site_getsitepackages (line 126) | def test_has_site_getsitepackages(writer, monkeypatch): function test_no_site_getsitepackages (line 139) | def test_no_site_getsitepackages(writer, monkeypatch): function test_user_site_is_path (line 152) | def test_user_site_is_path(writer, monkeypatch): function test_user_site_is_none (line 165) | def test_user_site_is_none(writer, monkeypatch): function test_sysconfig_get_path_return_path (line 178) | def test_sysconfig_get_path_return_path(writer, monkeypatch): function test_sysconfig_get_path_return_none (line 191) | def test_sysconfig_get_path_return_none(writer, monkeypatch): function test_no_exception (line 204) | def test_no_exception(writer): function test_exception_is_none (line 215) | def test_exception_is_none(): function test_exception_is_tuple (line 229) | def test_exception_is_tuple(): function test_exception_not_raising (line 263) | def test_exception_not_raising(writer, exception): function test_exception_raising (line 275) | def test_exception_raising(writer, exception): function test_exclude_exception_raising (line 292) | def test_exclude_exception_raising(writer, exclude, exception): function test_exclude_exception_not_raising (line 307) | def test_exclude_exception_not_raising(writer, exclude, exception): function test_reraise (line 318) | def test_reraise(writer): function test_onerror (line 331) | def test_onerror(writer): function test_onerror_with_reraise (line 353) | def test_onerror_with_reraise(writer): function test_decorate_function (line 368) | def test_decorate_function(writer): function test_decorate_coroutine (line 379) | def test_decorate_coroutine(writer): function test_decorate_generator (line 392) | def test_decorate_generator(writer): function test_decorate_generator_with_error (line 407) | def test_decorate_generator_with_error(): function test_default_with_function (line 417) | def test_default_with_function(): function test_default_with_generator (line 425) | def test_default_with_generator(): function test_default_with_coroutine (line 434) | def test_default_with_coroutine(): function test_async_context_manager (line 442) | def test_async_context_manager(): function test_error_when_decorating_class_without_parentheses (line 451) | def test_error_when_decorating_class_without_parentheses(): function test_error_when_decorating_class_with_parentheses (line 459) | def test_error_when_decorating_class_with_parentheses(): function test_unprintable_but_decorated_repr (line 467) | def test_unprintable_but_decorated_repr(writer): function test_unprintable_but_decorated_repr_without_reraise (line 484) | def test_unprintable_but_decorated_repr_without_reraise(writer): function test_unprintable_but_decorated_multiple_sinks (line 499) | def test_unprintable_but_decorated_multiple_sinks(capsys): function test_unprintable_but_decorated_repr_with_enqueue (line 518) | def test_unprintable_but_decorated_repr_with_enqueue(writer): function test_unprintable_but_decorated_repr_twice (line 538) | def test_unprintable_but_decorated_repr_twice(writer): function test_unprintable_with_catch_context_manager (line 555) | def test_unprintable_with_catch_context_manager(writer): function test_unprintable_with_catch_context_manager_reused (line 571) | def test_unprintable_with_catch_context_manager_reused(writer): function test_unprintable_but_decorated_repr_multiple_threads (line 599) | def test_unprintable_but_decorated_repr_multiple_threads(writer): FILE: tests/test_exceptions_formatting.py function normalize (line 14) | def normalize(exception): function generate (line 89) | def generate(output, outpath): function compare_exception (line 97) | def compare_exception(dirname, filename): function test_backtrace (line 156) | def test_backtrace(filename): function test_diagnose (line 183) | def test_diagnose(filename): function test_exception_ownership (line 203) | def test_exception_ownership(filename): function test_exception_others (line 239) | def test_exception_others(filename): function test_exception_modern (line 266) | def test_exception_modern(filename, minimum_python_version): function test_group_exception_using_backport (line 279) | def test_group_exception_using_backport(writer): function test_invalid_format_exception_only_no_output (line 292) | def test_invalid_format_exception_only_no_output(writer, monkeypatch): function test_invalid_format_exception_only_indented_error_message (line 303) | def test_invalid_format_exception_only_indented_error_message(writer, mo... function test_invalid_grouped_exception_no_exceptions (line 315) | def test_invalid_grouped_exception_no_exceptions(writer): FILE: tests/test_filesink_compression.py function test_compression_ext (line 17) | def test_compression_ext(tmp_path, compression): function test_compression_function (line 24) | def test_compression_function(tmp_path): function test_compression_at_rotation (line 35) | def test_compression_at_rotation(tmp_path, mode, freeze_time): function test_compression_at_remove_without_rotation (line 52) | def test_compression_at_remove_without_rotation(tmp_path, mode): function test_no_compression_at_remove_with_rotation (line 61) | def test_no_compression_at_remove_with_rotation(tmp_path, mode): function test_rename_existing_with_creation_time (line 69) | def test_rename_existing_with_creation_time(tmp_path, freeze_time): function test_renaming_compression_dest_exists (line 85) | def test_renaming_compression_dest_exists(freeze_time, tmp_path): function test_renaming_compression_dest_exists_with_time (line 103) | def test_renaming_compression_dest_exists_with_time(freeze_time, tmp_path): function test_compression_use_renamed_file_after_rotation (line 121) | def test_compression_use_renamed_file_after_rotation(tmp_path, freeze_ti... function test_threaded_compression_after_rotation (line 147) | def test_threaded_compression_after_rotation(tmp_path): function test_exception_during_compression_at_rotation (line 182) | def test_exception_during_compression_at_rotation(freeze_time, tmp_path,... function test_exception_during_compression_at_rotation_not_caught (line 212) | def test_exception_during_compression_at_rotation_not_caught(freeze_time... function test_exception_during_compression_at_remove (line 242) | def test_exception_during_compression_at_remove(tmp_path, capsys, delay): function test_invalid_compression_type (line 269) | def test_invalid_compression_type(compression): function test_unknown_compression (line 275) | def test_unknown_compression(compression): function test_gzip_module_unavailable (line 281) | def test_gzip_module_unavailable(ext, monkeypatch): function test_bz2_module_unavailable (line 289) | def test_bz2_module_unavailable(ext, monkeypatch): function test_lzma_module_unavailable (line 297) | def test_lzma_module_unavailable(ext, monkeypatch): function test_tarfile_module_unavailable (line 305) | def test_tarfile_module_unavailable(ext, monkeypatch): function test_zipfile_module_unavailable (line 313) | def test_zipfile_module_unavailable(ext, monkeypatch): FILE: tests/test_filesink_delay.py function test_file_not_delayed (line 9) | def test_file_not_delayed(tmp_path): function test_file_delayed (line 17) | def test_file_delayed(tmp_path): function test_compression (line 25) | def test_compression(tmp_path): function test_compression_early_remove (line 33) | def test_compression_early_remove(tmp_path): function test_retention (line 39) | def test_retention(tmp_path): function test_retention_early_remove (line 50) | def test_retention_early_remove(tmp_path): function test_rotation (line 60) | def test_rotation(tmp_path, freeze_time): function test_rotation_early_remove (line 75) | def test_rotation_early_remove(tmp_path): function test_rotation_and_retention (line 82) | def test_rotation_and_retention(freeze_time, tmp_path): function test_rotation_and_retention_timed_file (line 101) | def test_rotation_and_retention_timed_file(freeze_time, tmp_path): FILE: tests/test_filesink_permissions.py function set_umask (line 10) | def set_umask(): function test_log_file_permissions (line 17) | def test_log_file_permissions(tmp_path, permissions): function test_rotation_permissions (line 31) | def test_rotation_permissions(tmp_path, permissions, set_umask): FILE: tests/test_filesink_retention.py function test_retention_time (line 13) | def test_retention_time(freeze_time, tmp_path, retention): function test_retention_count (line 31) | def test_retention_count(tmp_path, retention): function test_retention_function (line 44) | def test_retention_function(tmp_path): function test_managed_files (line 65) | def test_managed_files(tmp_path): function test_not_managed_files (line 92) | def test_not_managed_files(tmp_path): function test_no_duplicates_in_listed_files (line 122) | def test_no_duplicates_in_listed_files(tmp_path, filename): function test_directories_ignored (line 147) | def test_directories_ignored(tmp_path): function test_manage_formatted_files (line 159) | def test_manage_formatted_files(freeze_time, tmp_path): function test_date_with_dot_after_extension (line 185) | def test_date_with_dot_after_extension(tmp_path): function test_symbol_in_filename (line 195) | def test_symbol_in_filename(tmp_path): function test_manage_file_without_extension (line 205) | def test_manage_file_without_extension(tmp_path): function test_manage_formatted_files_without_extension (line 215) | def test_manage_formatted_files_without_extension(tmp_path): function test_retention_at_rotation (line 228) | def test_retention_at_rotation(tmp_path, mode): function test_retention_at_remove_without_rotation (line 240) | def test_retention_at_remove_without_rotation(tmp_path, mode): function test_no_retention_at_remove_with_rotation (line 249) | def test_no_retention_at_remove_with_rotation(tmp_path, mode): function test_no_renaming (line 257) | def test_no_renaming(tmp_path): function test_exception_during_retention_at_rotation (line 266) | def test_exception_during_retention_at_rotation(freeze_time, tmp_path, c... function test_exception_during_retention_at_rotation_not_caught (line 296) | def test_exception_during_retention_at_rotation_not_caught(freeze_time, ... function test_exception_during_retention_at_remove (line 325) | def test_exception_during_retention_at_remove(tmp_path, capsys, delay): function test_invalid_retention_type (line 347) | def test_invalid_retention_type(retention): function test_unparsable_retention (line 355) | def test_unparsable_retention(retention): function test_invalid_value_retention_duration (line 361) | def test_invalid_value_retention_duration(retention): FILE: tests/test_filesink_rotation.py function tmp_path_local (line 18) | def tmp_path_local(reset_logger): function test_renaming (line 26) | def test_renaming(freeze_time, tmp_path): function test_no_renaming (line 54) | def test_no_renaming(freeze_time, tmp_path): function test_size_rotation (line 81) | def test_size_rotation(freeze_time, tmp_path, size): function test_time_rotation (line 148) | def test_time_rotation(freeze_time, tmp_path, when, hours): function test_time_rotation_dst (line 167) | def test_time_rotation_dst(freeze_time, tmp_path): function test_time_rotation_with_tzinfo_diff_bigger (line 190) | def test_time_rotation_with_tzinfo_diff_bigger(freeze_time, tmp_path): function test_time_rotation_with_tzinfo_diff_lower (line 213) | def test_time_rotation_with_tzinfo_diff_lower(freeze_time, tmp_path): function test_time_rotation_with_tzinfo_utc (line 236) | def test_time_rotation_with_tzinfo_utc(freeze_time, tmp_path): function test_time_rotation_multiple_days_at_midnight_utc (line 262) | def test_time_rotation_multiple_days_at_midnight_utc(freeze_time, tmp_pa... function test_daily_rotation_with_different_timezone (line 294) | def test_daily_rotation_with_different_timezone(freeze_time, tmp_path, o... function test_time_rotation_after_positive_timezone_changes_forward (line 332) | def test_time_rotation_after_positive_timezone_changes_forward(freeze_ti... function test_time_rotation_when_positive_timezone_changes_forward (line 359) | def test_time_rotation_when_positive_timezone_changes_forward(freeze_tim... function test_time_rotation_after_negative_timezone_changes_forward (line 395) | def test_time_rotation_after_negative_timezone_changes_forward(freeze_ti... function test_time_rotation_when_negative_timezone_changes_forward (line 422) | def test_time_rotation_when_negative_timezone_changes_forward(freeze_tim... function test_time_rotation_after_positive_timezone_changes_backward_aware (line 456) | def test_time_rotation_after_positive_timezone_changes_backward_aware( function test_time_rotation_after_positive_timezone_changes_backward_naive (line 485) | def test_time_rotation_after_positive_timezone_changes_backward_naive( function test_time_rotation_after_negative_timezone_changes_backward_aware (line 523) | def test_time_rotation_after_negative_timezone_changes_backward_aware( function test_time_rotation_after_negative_timezone_changes_backward_naive (line 552) | def test_time_rotation_after_negative_timezone_changes_backward_naive( function test_time_rotation_when_timezone_changes_backward_rename_file (line 582) | def test_time_rotation_when_timezone_changes_backward_rename_file(freeze... function test_dont_rotate_earlier_when_utc_is_one_day_before (line 618) | def test_dont_rotate_earlier_when_utc_is_one_day_before(freeze_time, tmp... function test_dont_rotate_later_when_utc_is_one_day_after (line 653) | def test_dont_rotate_later_when_utc_is_one_day_after(freeze_time, tmp_pa... function test_rotation_at_midnight_with_date_in_filename (line 679) | def test_rotation_at_midnight_with_date_in_filename(freeze_time, tmp_pat... function test_time_rotation_reopening_native (line 701) | def test_time_rotation_reopening_native(tmp_path_local, delay): function test_time_rotation_reopening_xattr_attributeerror (line 757) | def test_time_rotation_reopening_xattr_attributeerror(tmp_path_local, mo... function test_time_rotation_reopening_xattr_oserror (line 793) | def test_time_rotation_reopening_xattr_oserror(tmp_path_local, monkeypat... function test_time_rotation_windows_no_setctime (line 822) | def test_time_rotation_windows_no_setctime(tmp_path, monkeypatch): function test_time_rotation_windows_setctime_exception (line 846) | def test_time_rotation_windows_setctime_exception(tmp_path, monkeypatch,... function test_function_rotation (line 867) | def test_function_rotation(freeze_time, tmp_path): function test_rotation_at_remove (line 899) | def test_rotation_at_remove(freeze_time, tmp_path, mode): function test_no_rotation_at_remove (line 914) | def test_no_rotation_at_remove(tmp_path, mode): function test_rename_existing_with_creation_time (line 922) | def test_rename_existing_with_creation_time(freeze_time, tmp_path): function test_renaming_rotation_dest_exists (line 938) | def test_renaming_rotation_dest_exists(freeze_time, tmp_path): function test_renaming_rotation_dest_exists_with_time (line 956) | def test_renaming_rotation_dest_exists_with_time(freeze_time, tmp_path): function test_exception_during_rotation (line 976) | def test_exception_during_rotation(tmp_path, capsys): function test_exception_during_rotation_not_caught (line 995) | def test_exception_during_rotation_not_caught(tmp_path, capsys): function test_recipe_rotation_both_size_and_time (line 1014) | def test_recipe_rotation_both_size_and_time(freeze_time, tmp_path): function test_multiple_rotation_conditions (line 1061) | def test_multiple_rotation_conditions(freeze_time, tmp_path): function test_empty_rotation_condition_list (line 1086) | def test_empty_rotation_condition_list(): function test_invalid_rotation_type (line 1094) | def test_invalid_rotation_type(rotation): function test_unparsable_rotation (line 1115) | def test_unparsable_rotation(rotation): function test_invalid_day_rotation (line 1121) | def test_invalid_day_rotation(rotation): function test_invalid_time_rotation (line 1129) | def test_invalid_time_rotation(rotation): function test_invalid_value_size_rotation (line 1135) | def test_invalid_value_size_rotation(rotation): function test_invalid_unit_rotation_duration (line 1141) | def test_invalid_unit_rotation_duration(rotation): function test_invalid_value_rotation_duration (line 1147) | def test_invalid_value_rotation_duration(rotation): FILE: tests/test_filesink_watch.py function test_file_deleted_before_write_without_delay (line 12) | def test_file_deleted_before_write_without_delay(tmp_path): function test_file_deleted_before_write_with_delay (line 21) | def test_file_deleted_before_write_with_delay(tmp_path): function test_file_path_containing_placeholder (line 31) | def test_file_path_containing_placeholder(tmp_path): function test_file_reopened_with_arguments (line 42) | def test_file_reopened_with_arguments(tmp_path): function test_file_manually_changed (line 51) | def test_file_manually_changed(tmp_path): function test_file_folder_deleted (line 61) | def test_file_folder_deleted(tmp_path): function test_file_deleted_before_rotation (line 71) | def test_file_deleted_before_rotation(tmp_path): function test_file_deleted_before_compression (line 87) | def test_file_deleted_before_compression(tmp_path): function test_file_deleted_before_retention (line 103) | def test_file_deleted_before_retention(tmp_path): function test_file_correctly_reused_after_rotation (line 118) | def test_file_correctly_reused_after_rotation(tmp_path): function test_file_closed_without_being_logged (line 138) | def test_file_closed_without_being_logged(tmp_path, delay, compression): FILE: tests/test_formatting.py function test_log_formatters (line 37) | def test_log_formatters(format, validator, writer, use_log_function): function test_file_formatters (line 59) | def test_file_formatters(tmp_path, format, validator, part): function test_log_formatting (line 105) | def test_log_formatting(writer, message, args, kwargs, expected, use_log... function test_formatting_missing_lineno_frame_context (line 116) | def test_formatting_missing_lineno_frame_context(writer, missing_frame_l... function test_formatting_incomplete_frame_context (line 122) | def test_formatting_incomplete_frame_context(writer, incomplete_frame_co... function test_extra_formatting (line 128) | def test_extra_formatting(writer): function test_kwargs_in_extra_dict (line 135) | def test_kwargs_in_extra_dict(): function test_non_string_message (line 176) | def test_non_string_message(writer): function test_non_string_message_is_str_in_record (line 187) | def test_non_string_message_is_str_in_record(writer, colors): function test_missing_positional_field_during_formatting (line 205) | def test_missing_positional_field_during_formatting(writer, colors): function test_missing_named_field_during_formatting (line 215) | def test_missing_named_field_during_formatting(writer, colors): function test_malformed_curly_braces_during_formatting (line 225) | def test_malformed_curly_braces_during_formatting(writer, colors): function test_not_formattable_message (line 235) | def test_not_formattable_message(writer, colors): function test_invalid_color_markup (line 244) | def test_invalid_color_markup(writer): FILE: tests/test_get_frame.py function test_with_sys_getframe (line 7) | def test_with_sys_getframe(monkeypatch): function test_without_sys_getframe (line 16) | def test_without_sys_getframe(monkeypatch): function test_get_frame_fallback (line 22) | def test_get_frame_fallback(): FILE: tests/test_interception.py class InterceptHandler (line 9) | class InterceptHandler(logging.Handler): method emit (line 10) | def emit(self, record): function test_formatting (line 31) | def test_formatting(writer): function test_intercept (line 50) | def test_intercept(writer): function test_add_before_intercept (line 60) | def test_add_before_intercept(writer): function test_remove_interception (line 70) | def test_remove_interception(writer): function test_intercept_too_low (line 83) | def test_intercept_too_low(writer): function test_multiple_intercept (line 93) | def test_multiple_intercept(writer): function test_exception (line 104) | def test_exception(writer): function test_level_is_no (line 119) | def test_level_is_no(writer): function test_level_does_not_exist (line 128) | def test_level_does_not_exist(writer): function test_level_exist_builtin (line 139) | def test_level_exist_builtin(writer): function test_level_exists_custom (line 148) | def test_level_exists_custom(writer): function test_using_logging_function (line 160) | def test_using_logging_function(writer): FILE: tests/test_levels.py function test_log_int_level (line 10) | def test_log_int_level(writer): function test_log_str_level (line 17) | def test_log_str_level(writer): function test_add_level (line 24) | def test_add_level(writer): function test_add_level_after_add (line 41) | def test_add_level_after_add(writer, colorize, expected): function test_add_level_then_log_with_int_value (line 49) | def test_add_level_then_log_with_int_value(writer): function test_add_malicious_level (line 58) | def test_add_malicious_level(writer): function test_add_existing_level (line 71) | def test_add_existing_level(writer): function test_blank_color (line 89) | def test_blank_color(writer): function test_edit_level (line 96) | def test_edit_level(writer): function test_edit_existing_level (line 116) | def test_edit_existing_level(writer): function test_get_level (line 124) | def test_get_level(): function test_get_existing_level (line 130) | def test_get_existing_level(): function test_add_custom_level (line 134) | def test_add_custom_level(writer): function test_updating_min_level (line 149) | def test_updating_min_level(writer): function test_assign_custom_level_method (line 165) | def test_assign_custom_level_method(writer): function test_updating_level_no_not_allowed_default (line 183) | def test_updating_level_no_not_allowed_default(): function test_updating_level_no_not_allowed_custom (line 190) | def test_updating_level_no_not_allowed_custom(): function test_log_invalid_level_type (line 199) | def test_log_invalid_level_type(writer, level): function test_log_invalid_level_value (line 208) | def test_log_invalid_level_value(writer, level): function test_log_unknown_level (line 217) | def test_log_unknown_level(writer, level): function test_add_invalid_level_name (line 224) | def test_add_invalid_level_name(level_name): function test_add_invalid_level_type (line 230) | def test_add_invalid_level_type(level_value): function test_add_invalid_level_value (line 236) | def test_add_invalid_level_value(level_value): function test_get_invalid_level (line 244) | def test_get_invalid_level(level): function test_get_unknown_level (line 249) | def test_get_unknown_level(): function test_edit_invalid_level (line 255) | def test_edit_invalid_level(level): function test_edit_unknown_level (line 261) | def test_edit_unknown_level(level_name): function test_add_level_unknown_color (line 270) | def test_add_level_unknown_color(color): function test_add_level_invalid_markup (line 282) | def test_add_level_invalid_markup(color): function test_add_level_invalid_name (line 290) | def test_add_level_invalid_name(color): FILE: tests/test_locks.py class CyclicReference (line 12) | class CyclicReference: method __init__ (line 24) | def __init__(self, _other: "CyclicReference" = None): method __del__ (line 27) | def __del__(self): function _remove_cyclic_references (line 32) | def _remove_cyclic_references(): function test_no_deadlock_on_generational_garbage_collection (line 41) | def test_no_deadlock_on_generational_garbage_collection(): function test_no_deadlock_if_logger_used_inside_sink_with_catch (line 71) | def test_no_deadlock_if_logger_used_inside_sink_with_catch(capsys): function test_no_deadlock_if_logger_used_inside_sink_without_catch (line 84) | def test_no_deadlock_if_logger_used_inside_sink_without_catch(): function test_no_error_if_multithreading (line 94) | def test_no_error_if_multithreading(capsys): function _pickle_sink (line 118) | def _pickle_sink(message): function test_pickled_logger_does_not_inherit_acquired_local (line 127) | def test_pickled_logger_does_not_inherit_acquired_local(capsys): FILE: tests/test_multiprocessing.py function fork_context (line 17) | def fork_context(): function spawn_context (line 22) | def spawn_context(): function do_something (line 26) | def do_something(i): function set_logger (line 30) | def set_logger(logger_): function subworker (line 35) | def subworker(logger_): function subworker_inheritance (line 39) | def subworker_inheritance(): function subworker_remove (line 43) | def subworker_remove(logger_): function subworker_remove_inheritance (line 49) | def subworker_remove_inheritance(): function subworker_complete (line 55) | def subworker_complete(logger_): function subworker_complete_inheritance (line 64) | def subworker_complete_inheritance(): function subworker_barrier (line 73) | def subworker_barrier(logger_, barrier): function subworker_barrier_inheritance (line 80) | def subworker_barrier_inheritance(barrier): class Writer (line 87) | class Writer: method __init__ (line 88) | def __init__(self): method write (line 91) | def write(self, message): method read (line 94) | def read(self): function test_apply_spawn (line 98) | def test_apply_spawn(spawn_context): function test_apply_fork (line 116) | def test_apply_fork(fork_context): function test_apply_inheritance (line 134) | def test_apply_inheritance(fork_context): function test_apply_async_spawn (line 151) | def test_apply_async_spawn(spawn_context): function test_apply_async_fork (line 170) | def test_apply_async_fork(fork_context): function test_apply_async_inheritance (line 189) | def test_apply_async_inheritance(fork_context): function test_process_spawn (line 207) | def test_process_spawn(spawn_context): function test_process_fork (line 225) | def test_process_fork(fork_context): function test_process_inheritance (line 243) | def test_process_inheritance(fork_context): function test_remove_in_child_process_spawn (line 260) | def test_remove_in_child_process_spawn(spawn_context): function test_remove_in_child_process_fork (line 278) | def test_remove_in_child_process_fork(fork_context): function test_remove_in_child_process_inheritance (line 296) | def test_remove_in_child_process_inheritance(fork_context): function test_remove_in_main_process_spawn (line 313) | def test_remove_in_main_process_spawn(spawn_context): function test_remove_in_main_process_fork (line 335) | def test_remove_in_main_process_fork(fork_context): function test_remove_in_main_process_inheritance (line 354) | def test_remove_in_main_process_inheritance(fork_context): function test_await_complete_spawn (line 372) | def test_await_complete_spawn(capsys, spawn_context): function test_await_complete_fork (line 398) | def test_await_complete_fork(capsys, fork_context): function test_await_complete_inheritance (line 424) | def test_await_complete_inheritance(capsys, fork_context): function test_not_picklable_sinks_spawn (line 449) | def test_not_picklable_sinks_spawn(spawn_context, tmp_path, capsys): function test_not_picklable_sinks_fork (line 476) | def test_not_picklable_sinks_fork(capsys, tmp_path, fork_context): function test_not_picklable_sinks_inheritance (line 509) | def test_not_picklable_sinks_inheritance(capsys, tmp_path, fork_context): function test_no_deadlock_if_internal_lock_in_use (line 545) | def test_no_deadlock_if_internal_lock_in_use(tmp_path, enqueue, deepcopi... function test_no_deadlock_if_external_lock_in_use (line 589) | def test_no_deadlock_if_external_lock_in_use(enqueue, capsys, fork_conte... function test_complete_from_multiple_child_processes (line 610) | def test_complete_from_multiple_child_processes(capsys, fork_context): FILE: tests/test_opt.py function test_record (line 11) | def test_record(writer): function test_record_in_kwargs_too (line 21) | def test_record_in_kwargs_too(writer): function test_record_not_in_extra (line 34) | def test_record_not_in_extra(): function test_kwargs_in_extra_of_record (line 48) | def test_kwargs_in_extra_of_record(): function test_exception_boolean (line 63) | def test_exception_boolean(writer): function test_exception_exc_info (line 77) | def test_exception_exc_info(writer): function test_exception_class (line 93) | def test_exception_class(writer): function test_exception_log_function (line 109) | def test_exception_log_function(writer): function test_lazy (line 123) | def test_lazy(writer): function test_lazy_function_executed_only_once (line 156) | def test_lazy_function_executed_only_once(writer): function test_logging_within_lazy_function (line 172) | def test_logging_within_lazy_function(writer): function test_depth (line 188) | def test_depth(writer): function test_depth_with_unreachable_frame (line 203) | def test_depth_with_unreachable_frame(writer): function test_capture (line 210) | def test_capture(writer): function test_colors (line 218) | def test_colors(writer): function test_colors_not_colorize (line 228) | def test_colors_not_colorize(writer): function test_colors_doesnt_color_unrelated (line 234) | def test_colors_doesnt_color_unrelated(writer): function test_colors_doesnt_strip_unrelated (line 240) | def test_colors_doesnt_strip_unrelated(writer): function test_colors_doesnt_raise_unrelated_colorize (line 246) | def test_colors_doesnt_raise_unrelated_colorize(writer): function test_colors_doesnt_raise_unrelated_not_colorize (line 252) | def test_colors_doesnt_raise_unrelated_not_colorize(writer): function test_colors_doesnt_raise_unrelated_colorize_dynamic (line 258) | def test_colors_doesnt_raise_unrelated_colorize_dynamic(writer): function test_colors_doesnt_raise_unrelated_not_colorize_dynamic (line 264) | def test_colors_doesnt_raise_unrelated_not_colorize_dynamic(writer): function test_colors_within_record (line 271) | def test_colors_within_record(writer, colorize): function test_colors_nested (line 279) | def test_colors_nested(writer, colorize): function test_colors_stripped_in_message_record (line 288) | def test_colors_stripped_in_message_record(colorize): function test_invalid_markup_in_message (line 302) | def test_invalid_markup_in_message(writer, message, colorize): function test_colors_with_args (line 312) | def test_colors_with_args(writer, colorize): function test_colors_with_level (line 319) | def test_colors_with_level(writer, colorize): function test_colors_double_message (line 327) | def test_colors_double_message(writer, colorize): function test_colors_multiple_calls (line 340) | def test_colors_multiple_calls(writer, colorize): function test_colors_multiple_calls_level_color_changed (line 348) | def test_colors_multiple_calls_level_color_changed(writer, colorize): function test_colors_with_dynamic_formatter (line 358) | def test_colors_with_dynamic_formatter(writer, colorize): function test_colors_with_format_specs (line 365) | def test_colors_with_format_specs(writer, colorize): function test_colors_with_message_specs (line 373) | def test_colors_with_message_specs(writer, colorize): function test_colored_string_used_as_spec (line 383) | def test_colored_string_used_as_spec(writer, colorize): function test_colored_string_getitem (line 390) | def test_colored_string_getitem(writer, colorize): function test_colors_without_formatting_args (line 397) | def test_colors_without_formatting_args(writer, colorize): function test_colors_with_recursion_depth_exceeded_in_format (line 405) | def test_colors_with_recursion_depth_exceeded_in_format(writer, colorize): function test_colors_with_recursion_depth_exceeded_in_message (line 413) | def test_colors_with_recursion_depth_exceeded_in_message(writer, colorize): function test_colors_with_auto_indexing (line 421) | def test_colors_with_auto_indexing(writer, colorize): function test_colors_with_manual_indexing (line 428) | def test_colors_with_manual_indexing(writer, colorize): function test_colors_with_invalid_indexing (line 436) | def test_colors_with_invalid_indexing(writer, colorize, message): function test_raw (line 446) | def test_raw(writer): function test_raw_with_format_function (line 453) | def test_raw_with_format_function(writer): function test_raw_with_colors (line 460) | def test_raw_with_colors(writer, colorize): function test_args_with_colors_not_formatted_twice (line 466) | def test_args_with_colors_not_formatted_twice(capsys): function test_level_tag_wrapping_with_colors (line 481) | def test_level_tag_wrapping_with_colors(writer, colorize): function test_all_colors_combinations (line 499) | def test_all_colors_combinations(writer, dynamic_format, colorize, color... function test_raw_with_record (line 560) | def test_raw_with_record(writer): function test_keep_extra (line 566) | def test_keep_extra(writer): function test_before_bind (line 575) | def test_before_bind(writer): function test_deprecated_ansi_argument (line 581) | def test_deprecated_ansi_argument(writer): function test_message_update_not_overridden_by_patch (line 589) | def test_message_update_not_overridden_by_patch(writer, colors): function test_message_update_not_overridden_by_format (line 600) | def test_message_update_not_overridden_by_format(writer, colors): function test_message_update_not_overridden_by_filter (line 612) | def test_message_update_not_overridden_by_filter(writer, colors): function test_message_update_not_overridden_by_raw (line 624) | def test_message_update_not_overridden_by_raw(writer, colors): function test_overridden_message_ignore_colors (line 630) | def test_overridden_message_ignore_colors(writer): FILE: tests/test_parse.py function fileobj (line 14) | def fileobj(): function test_parse_file (line 19) | def test_parse_file(tmp_path): function test_parse_fileobj (line 26) | def test_parse_fileobj(tmp_path): function test_parse_pathlib (line 34) | def test_parse_pathlib(tmp_path): function test_parse_string_pattern (line 41) | def test_parse_string_pattern(fileobj): function test_parse_regex_pattern (line 46) | def test_parse_regex_pattern(fileobj): function test_parse_multiline_pattern (line 52) | def test_parse_multiline_pattern(fileobj): function test_parse_without_group (line 57) | def test_parse_without_group(fileobj): function test_parse_bytes (line 62) | def test_parse_bytes(): function test_chunk (line 69) | def test_chunk(fileobj, chunk): function test_positive_lookbehind_pattern (line 74) | def test_positive_lookbehind_pattern(): function test_greedy_pattern (line 82) | def test_greedy_pattern(): function test_cast_dict (line 90) | def test_cast_dict(tmp_path): function test_cast_function (line 99) | def test_cast_function(tmp_path): function test_cast_with_irrelevant_arg (line 113) | def test_cast_with_irrelevant_arg(tmp_path): function test_cast_with_irrelevant_value (line 122) | def test_cast_with_irrelevant_value(tmp_path): function test_invalid_file (line 132) | def test_invalid_file(file): function test_invalid_pattern (line 138) | def test_invalid_pattern(fileobj, pattern): function test_invalid_cast (line 144) | def test_invalid_cast(fileobj, cast): FILE: tests/test_patch.py function test_patch_after_add (line 4) | def test_patch_after_add(writer): function test_patch_before_add (line 12) | def test_patch_before_add(writer): function test_add_using_patched (line 20) | def test_add_using_patched(writer): function test_not_override_parent_logger (line 30) | def test_not_override_parent_logger(writer): function test_override_previous_patched (line 41) | def test_override_previous_patched(writer): function test_no_conflict (line 48) | def test_no_conflict(writer): function test_override_configured (line 61) | def test_override_configured(writer): function test_multiple_patches (line 72) | def test_multiple_patches(writer): FILE: tests/test_pickling.py function print_ (line 14) | def print_(message): function async_print (line 18) | async def async_print(msg): function copied_logger_though_pickle (line 23) | def copied_logger_though_pickle(logger): class StreamHandler (line 32) | class StreamHandler: method __init__ (line 33) | def __init__(self, flushable=False, stoppable=False): method write (line 43) | def write(self, message): method _flush (line 46) | def _flush(self): method _stop (line 49) | def _stop(self): class MockLock (line 53) | class MockLock: method __enter__ (line 54) | def __enter__(self): method __exit__ (line 57) | def __exit__(self, *excinfo): class StandardHandler (line 61) | class StandardHandler(logging.Handler): method __init__ (line 62) | def __init__(self, level): method emit (line 66) | def emit(self, record): method acquire (line 69) | def acquire(self): method release (line 72) | def release(self): method createLock (line 75) | def createLock(self): # noqa: N802 function format_function (line 79) | def format_function(record): function filter_function (line 83) | def filter_function(record): function patch_function (line 87) | def patch_function(record): function rotation_function (line 91) | def rotation_function(message, file): function retention_function (line 95) | def retention_function(files): function compression_function (line 99) | def compression_function(path): function test_pickling_function_handler (line 103) | def test_pickling_function_handler(capsys): function test_pickling_coroutine_function_handler (line 112) | def test_pickling_coroutine_function_handler(capsys): function test_pickling_stream_handler (line 130) | def test_pickling_stream_handler(flushable, stoppable): function test_pickling_standard_handler (line 141) | def test_pickling_standard_handler(): function test_pickling_standard_handler_root_logger_not_picklable (line 150) | def test_pickling_standard_handler_root_logger_not_picklable(monkeypatch... function test_pickling_file_handler (line 169) | def test_pickling_file_handler(tmp_path): function test_pickling_file_handler_rotation (line 190) | def test_pickling_file_handler_rotation(tmp_path, rotation): function test_pickling_file_handler_retention (line 201) | def test_pickling_file_handler_retention(tmp_path, retention): function test_pickling_file_handler_compression (line 210) | def test_pickling_file_handler_compression(tmp_path, compression): function test_pickling_no_handler (line 218) | def test_pickling_no_handler(writer): function test_pickling_handler_not_serializable (line 225) | def test_pickling_handler_not_serializable(): function test_pickling_filter_function (line 231) | def test_pickling_filter_function(capsys): function test_pickling_filter_name (line 242) | def test_pickling_filter_name(capsys, filter): function test_pickling_format_string (line 252) | def test_pickling_format_string(capsys, colorize): function test_pickling_format_function (line 262) | def test_pickling_format_function(capsys, colorize): function test_pickling_filter_function_not_serializable (line 271) | def test_pickling_filter_function_not_serializable(): function test_pickling_format_function_not_serializable (line 277) | def test_pickling_format_function_not_serializable(): function test_pickling_bound_logger (line 283) | def test_pickling_bound_logger(writer): function test_pickling_patched_logger (line 291) | def test_pickling_patched_logger(writer): function test_remove_after_pickling (line 299) | def test_remove_after_pickling(capsys): function test_pickling_logging_method (line 310) | def test_pickling_logging_method(capsys): function test_pickling_log_method (line 320) | def test_pickling_log_method(capsys): function test_pickling_no_error (line 347) | def test_pickling_no_error(method): FILE: tests/test_propagation.py class PropagateHandler (line 12) | class PropagateHandler(logging.Handler): method emit (line 13) | def emit(self, record): function test_formatting (line 17) | def test_formatting(capsys): function test_propagate (line 37) | def test_propagate(capsys): function test_remove_propagation (line 52) | def test_remove_propagation(capsys): function test_propagate_too_high (line 69) | def test_propagate_too_high(capsys): function test_exception (line 83) | def test_exception(capsys, use_opt): FILE: tests/test_recattr.py function test_patch_record_file (line 7) | def test_patch_record_file(writer): function test_patch_record_thread (line 18) | def test_patch_record_thread(writer): function test_patch_record_process (line 29) | def test_patch_record_process(writer): function test_patch_record_exception (line 40) | def test_patch_record_exception(writer): function test_level_repr (line 54) | def test_level_repr(): function test_file_repr (line 59) | def test_file_repr(): function test_thread_repr (line 64) | def test_thread_repr(): function test_process_repr (line 69) | def test_process_repr(): function test_exception_repr (line 74) | def test_exception_repr(): FILE: tests/test_reinstall.py function fork_context (line 10) | def fork_context(): function spawn_context (line 15) | def spawn_context(): class Writer (line 19) | class Writer: method __init__ (line 20) | def __init__(self): method write (line 23) | def write(self, message): method read (line 26) | def read(self): function subworker (line 30) | def subworker(logger): function poolworker (line 36) | def poolworker(_): function deeper_subworker (line 41) | def deeper_subworker(): function test_process_fork (line 46) | def test_process_fork(fork_context): function test_process_spawn (line 63) | def test_process_spawn(spawn_context): function test_pool_fork (line 81) | def test_pool_fork(fork_context): function test_pool_spawn (line 95) | def test_pool_spawn(spawn_context): FILE: tests/test_remove.py class StopSinkError (line 9) | class StopSinkError: method write (line 10) | def write(self, message): method stop (line 13) | def stop(self): function test_remove_all (line 17) | def test_remove_all(tmp_path, writer, capsys): function test_remove_simple (line 44) | def test_remove_simple(writer): function test_remove_enqueue (line 52) | def test_remove_enqueue(writer): function test_remove_enqueue_filesink (line 61) | def test_remove_enqueue_filesink(tmp_path): function test_exception_in_stop_during_remove_one (line 69) | def test_exception_in_stop_during_remove_one(capsys): function test_exception_in_stop_not_caught_during_remove_all (line 82) | def test_exception_in_stop_not_caught_during_remove_all(capsys): function test_invalid_handler_id_value (line 102) | def test_invalid_handler_id_value(writer): function test_invalid_handler_id_type (line 110) | def test_invalid_handler_id_type(handler_id): FILE: tests/test_repr.py function test_no_handler (line 9) | def test_no_handler(): function test_stderr (line 13) | def test_stderr(): function test_stdout (line 18) | def test_stdout(): function test_file_object (line 23) | def test_file_object(tmp_path): function test_file_str (line 30) | def test_file_str(tmp_path): function test_file_pathlib (line 36) | def test_file_pathlib(tmp_path): function test_stream_object (line 42) | def test_stream_object(): function test_stream_object_without_name_attr (line 57) | def test_stream_object_without_name_attr(): function test_stream_object_with_empty_name (line 69) | def test_stream_object_with_empty_name(): function test_function (line 84) | def test_function(): function test_callable_without_name (line 92) | def test_callable_without_name(): function test_callable_with_empty_name (line 104) | def test_callable_with_empty_name(): function test_coroutine_function (line 118) | def test_coroutine_function(): function test_coroutine_callable_without_name (line 126) | def test_coroutine_callable_without_name(): function test_coroutine_function_with_empty_name (line 140) | def test_coroutine_function_with_empty_name(): function test_standard_handler (line 154) | def test_standard_handler(): function test_multiple_handlers (line 165) | def test_multiple_handlers(): function test_handler_removed (line 177) | def test_handler_removed(): function test_handler_level_name (line 184) | def test_handler_level_name(): function test_handler_level_num (line 189) | def test_handler_level_num(): FILE: tests/test_standard_handler.py class RejectAllFilter (line 9) | class RejectAllFilter(Filter): method filter (line 10) | def filter(self, record): function test_stream_handler (line 14) | def test_stream_handler(capsys): function test_file_handler (line 25) | def test_file_handler(tmp_path): function test_null_handler (line 35) | def test_null_handler(capsys): function test_extra_dict (line 45) | def test_extra_dict(capsys): function test_no_conflict_with_extra_dict (line 56) | def test_no_conflict_with_extra_dict(capsys): function test_no_exception (line 65) | def test_no_exception(): function test_exception (line 83) | def test_exception(capsys): function test_exception_formatting (line 101) | def test_exception_formatting(tmp_path): function test_standard_formatter (line 121) | def test_standard_formatter(capsys, dynamic_format): function test_standard_formatter_with_new_line (line 139) | def test_standard_formatter_with_new_line(capsys, dynamic_format): function test_raw_standard_formatter (line 157) | def test_raw_standard_formatter(capsys, dynamic_format): function test_raw_standard_formatter_with_new_line (line 175) | def test_raw_standard_formatter_with_new_line(capsys, dynamic_format): function test_standard_formatter_with_non_standard_level_name (line 192) | def test_standard_formatter_with_non_standard_level_name(capsys): function test_standard_formatter_with_custom_level_name (line 203) | def test_standard_formatter_with_custom_level_name(capsys): function test_standard_formatter_with_unregistered_level (line 215) | def test_standard_formatter_with_unregistered_level(capsys): function test_standard_handler_with_configured_filter (line 226) | def test_standard_handler_with_configured_filter(capsys): function test_standard_handler_with_configured_level (line 240) | def test_standard_handler_with_configured_level(capsys): FILE: tests/test_threading.py class NonSafeSink (line 8) | class NonSafeSink: method __init__ (line 9) | def __init__(self, sleep_time, stop_time=0): method write (line 15) | def write(self, message): method stop (line 24) | def stop(self): function test_safe_logging (line 29) | def test_safe_logging(): function test_safe_adding_while_logging (line 53) | def test_safe_adding_while_logging(writer): function test_safe_removing_while_logging (line 85) | def test_safe_removing_while_logging(capsys): function test_safe_removing_all_while_logging (line 116) | def test_safe_removing_all_while_logging(capsys): function test_safe_slow_removing_all_while_logging (line 144) | def test_safe_slow_removing_all_while_logging(capsys): function test_safe_writing_after_removing (line 173) | def test_safe_writing_after_removing(capsys): function test_heavily_threaded_logging (line 203) | def test_heavily_threaded_logging(capsys): FILE: tests/test_type_hinting.py function test_mypy_import (line 6) | def test_mypy_import():