]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98903: Test suite fails with exit code 4 if no tests ran (#98904)
authorVictor Stinner <vstinner@python.org>
Wed, 2 Nov 2022 14:37:40 +0000 (15:37 +0100)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 14:37:40 +0000 (15:37 +0100)
commitc76db37c0d23174cbffd6fa978d39693890ef020
treee0030f4e747e9a682125954f315e4d4f57bb0cb0
parent0689b99bb8c4f6058af43a52effaa8a25609dbed
gh-98903: Test suite fails with exit code 4 if no tests ran (#98904)

The Python test suite now fails wit exit code 4 if no tests ran. It
should help detecting typos in test names and test methods.

* Add "EXITCODE_" constants to Lib/test/libregrtest/main.py.
* Fix a typo: "NO TEST RUN" becomes "NO TESTS RAN"
Lib/test/libregrtest/main.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2022-10-31-14-47-49.gh-issue-98903.7KinCV.rst [new file with mode: 0644]