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
{{ message }}
Repository navigation
Make Python test suite fail if no tests ran #98903
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 commentedon Oct 31, 2022
Non-zero exit code should also help automation of running the Python test suite, with
git bisectfor example.vstinner commentedon 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 (#…