MCPcopy Create free account
hub / github.com/pytest-dev/pytest / ExitCode

Class ExitCode

src/_pytest/config/__init__.py:84–103  ·  view source on GitHub ↗

Encodes the valid exit codes by pytest. Currently users and plugins may supply other exit codes as well. .. versionadded:: 5.0

Source from the content-addressed store, hash-verified

82
83@final
84class ExitCode(enum.IntEnum):
85 """Encodes the valid exit codes by pytest.
86
87 Currently users and plugins may supply other exit codes as well.
88
89 .. versionadded:: 5.0
90 """
91
92 #: Tests passed.
93 OK = 0
94 #: Tests failed.
95 TESTS_FAILED = 1
96 #: pytest was interrupted.
97 INTERRUPTED = 2
98 #: An internal error got in the way.
99 INTERNAL_ERROR = 3
100 #: pytest was misused.
101 USAGE_ERROR = 4
102 #: pytest couldn't find tests.
103 NO_TESTS_COLLECTED = 5
104
105
106class ConftestImportFailure(Exception):

Callers 5

__init__Method · 0.90
runpytest_inprocessMethod · 0.90
reprecClass · 0.90
runMethod · 0.90
mainFunction · 0.85

Calls

no outgoing calls

Tested by 3

__init__Method · 0.72
runpytest_inprocessMethod · 0.72
runMethod · 0.72