Skip to content
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

GH-113661: unittest runner: Don't exit 5 if tests were skipped #113856

Merged
merged 2 commits into from Jan 9, 2024

Conversation

stefanor
Copy link
Contributor

@stefanor stefanor commented Jan 9, 2024

The intention of exiting 5 was to detect issues where the test suite wasn't discovered at all. If we skipped tests, it was correctly discovered.

Follow on to (and resolving a bug in) GH-62432.

The intention of exiting 5 was to detect issues where the test suite
wasn't discovered at all. If we skipped tests, it was correctly
discovered.
@stefanor
Copy link
Contributor Author

stefanor commented Jan 9, 2024

@gpshead, @vstinner: Filed this PR to fix the regression.

@gpshead gpshead added needs backport to 3.12 bug and security fixes type-bug An unexpected behavior, bug, or error labels Jan 9, 2024
@gpshead gpshead enabled auto-merge (squash) January 9, 2024 19:28
@gpshead gpshead merged commit 3a9096c into python:main Jan 9, 2024
31 checks passed
@miss-islington-app
Copy link

Thanks @stefanor for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 9, 2024
…ythonGH-113856)

The intention of exiting 5 was to detect issues where the test suite
wasn't discovered at all. If we skipped tests, it was correctly
discovered.
(cherry picked from commit 3a9096c)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
@bedevere-app
Copy link

bedevere-app bot commented Jan 9, 2024

GH-113875 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Jan 9, 2024
@stefanor stefanor deleted the exit-0-skipped-tests branch January 9, 2024 19:59
gpshead pushed a commit that referenced this pull request Jan 9, 2024
…GH-113856) (#113875)

GH-113661: unittest runner: Don't exit 5 if tests were skipped (GH-113856)

The intention of exiting 5 was to detect issues where the test suite
wasn't discovered at all. If we skipped tests, it was correctly
discovered.
(cherry picked from commit 3a9096c)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants