You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/en/usage.rst
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,11 @@ Running ``pytest`` can result in six different exit codes:
33
33
:Exit code 4: pytest command line usage error
34
34
:Exit code 5: No tests were collected
35
35
36
-
They are represented by the :class:`_pytest.main.ExitCode` enum.
36
+
They are represented by the :class:`_pytest.main.ExitCode` enum. The exit codes being a part of the public API can be imported and accessed directly using:
37
+
38
+
.. code-block:: python
39
+
40
+
from pytest import ExitCode
37
41
38
42
Getting help on version, option names, environment variables
0 commit comments