MCPcopy
hub / github.com/pytest-dev/pytest / ExitCode

Class ExitCode

src/_pytest/config/__init__.py:101–124  ·  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

99
100@final
101class ExitCode(enum.IntEnum):
102 """Encodes the valid exit codes by pytest.
103
104 Currently users and plugins may supply other exit codes as well.
105
106 .. versionadded:: 5.0
107 """
108
109 #: Tests passed.
110 OK = 0
111 #: Tests failed.
112 TESTS_FAILED = 1
113 #: pytest was interrupted.
114 INTERRUPTED = 2
115 #: An internal error got in the way.
116 INTERNAL_ERROR = 3
117 #: pytest was misused.
118 USAGE_ERROR = 4
119 #: pytest couldn't find tests.
120 NO_TESTS_COLLECTED = 5
121 #: All tests pass, but maximum number of warnings exceeded.
122 MAX_WARNINGS_ERROR = 6
123
124 __module__ = "pytest"
125
126
127class 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