Encodes the valid exit codes by pytest. Currently users and plugins may supply other exit codes as well. .. versionadded:: 5.0
| 82 | |
| 83 | @final |
| 84 | class 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 | |
| 106 | class ConftestImportFailure(Exception): |
no outgoing calls