When the Python test suite is run with a typo in a test filename or a test method, it displays "NO TEST RUN" but the exit code is a success (exit code 0) and so the mistake can be easily missed. I propose to make the test suite fail with a non-zero exit code to highlight that something unusual happened.
Activity
vstinner commented on Oct 31, 2022
Non-zero exit code should also help automation of running the Python test suite, with git bisect for example.
vstinner commented on Nov 2, 2022
Fixed by c76db37
gh-98903: Test suite fails with exit code 4 if no tests ran (#98904)
pythongh-98903: Test suite fails with exit code 4 if no tests ran (py…
[3.11] gh-108822: Backport libregrtest changes from the main branch (#…