New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return the correct exit code if all tests have been skipped in unittest
#106584
Comments
EliseevEgor
added a commit
to EliseevEgor/cpython
that referenced
this issue
Jul 10, 2023
Increase the number of running tests only if it hasn't been skipped.
EliseevEgor
added a commit
to EliseevEgor/cpython
that referenced
this issue
Jul 11, 2023
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
EliseevEgor
added a commit
to EliseevEgor/cpython
that referenced
this issue
Jul 11, 2023
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
EliseevEgor
added a commit
to EliseevEgor/cpython
that referenced
this issue
Jul 11, 2023
EliseevEgor
added a commit
to EliseevEgor/cpython
that referenced
this issue
Jul 11, 2023
ambv
pushed a commit
that referenced
this issue
Sep 22, 2023
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
csm10495
pushed a commit
to csm10495/cpython
that referenced
this issue
Sep 28, 2023
…6588) Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
Thank you for the fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Bug report
In Python 3.12, a new exit code (
5, instead of0) was added if all tests were skipped inunittest. But in some cases it still returns0. See code examples.Code example 1:
Output:
Ok, we get exit code 5 here.
Code example 2:
Output:
Here we can see output
0. Ran one test and skipped. But I think it is incorrect, because all tests were skipped.Your environment
Linked PRs
The text was updated successfully, but these errors were encountered: