Add no_logs parameter to AssertLogsContext (#6426)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Waygood
2021-11-28 13:25:43 +00:00
committed by GitHub
parent 73d598eaa8
commit 971908ca24

View File

@@ -278,7 +278,10 @@ class _AssertLogsContext(Generic[_L]):
LOGGING_FORMAT: str
records: list[logging.LogRecord]
output: list[str]
def __init__(self, test_case: TestCase, logger_name: str, level: int) -> None: ...
if sys.version_info >= (3, 10):
def __init__(self, test_case: TestCase, logger_name: str, level: int, no_logs: bool) -> None: ...
else:
def __init__(self, test_case: TestCase, logger_name: str, level: int) -> None: ...
def __enter__(self) -> _L: ...
def __exit__(
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None