Update __init__.py

This commit is contained in:
apanayotova03 2024-06-27 22:32:09 +02:00
parent aedd9879eb
commit 1d04a4234b
1 changed files with 32 additions and 33 deletions

View File

@ -92,10 +92,12 @@ Ideally this type would be provided by pluggy itself.
hookimpl = HookimplMarker("pytest")
hookspec = HookspecMarker("pytest")
@final # I added
class UsageError(Exception):
"""Error in pytest usage or invocation."""
@final
class ExitCode(enum.IntEnum):
"""Encodes the valid exit codes by pytest.
@ -2007,9 +2009,6 @@ def apply_warning_filters(
warnings.filterwarnings(*parse_warning_filter(arg, escape=True))
branchCoverage = [0, 0, 0, 0]
# Cover branches 1,3