Skip to content

Commit f7e4dce

Browse files
tests/test_general.py: test_4392(): added comments about pytest exit codes.
1 parent 94283d6 commit f7e4dce

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎tests/test_general.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,6 +2023,16 @@ def test_4392():
20232023
print(f'{pymupdf.swig_version=}', flush=1)
20242024
print(f'{pymupdf.swig_version_tuple=}', flush=1)
20252025

2026+
# pytest exit codes
2027+
# (https://docs.pytest.org/en/latest/reference/exit-codes.html):
2028+
#
2029+
# Exit code 0: All tests were collected and passed successfully
2030+
# Exit code 1: Tests were collected and run but some of the tests failed
2031+
# Exit code 2: Test execution was interrupted by the user
2032+
# Exit code 3: Internal error happened while executing tests
2033+
# Exit code 4: pytest command line usage error
2034+
# Exit code 5: No tests were collected
2035+
20262036
assert e1 == 5
20272037
if pymupdf.swig_version_tuple >= (4, 4):
20282038
if sysconfig.get_config_var('Py_GIL_DISABLED') == 1 and sys._is_gil_enabled():

0 commit comments

Comments
 (0)