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

Fix crash with setup errors and --rerun-except flag #244

Merged
merged 4 commits into from
Nov 22, 2023

Conversation

Joonalai
Copy link
Contributor

@Joonalai Joonalai commented Nov 21, 2023

This PR fixes internal errors on setup (non-existent fixtures etc) that occur when using --rerun-except flag.

I am wondering whether reruns should occur when failure happens on setup part of the test?

Copy link
Contributor

@icemac icemac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM besides some styling suggestion.

@icemac
Copy link
Contributor

icemac commented Nov 22, 2023

I am wondering whether reruns should occur when failure happens on setup part of the test?

If an error occurs that early probably rerunning does not help, but this could be solved in another PR.

icemac and others added 2 commits November 22, 2023 09:09

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@Joonalai
Copy link
Contributor Author

I am wondering whether reruns should occur when failure happens on setup part of the test?

If an error occurs that early probably rerunning does not help, but this could be solved in another PR.

I agree, maybe another issue or PR should be opened for this.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@icemac
Copy link
Contributor

icemac commented Nov 22, 2023

Thank you for this PR. 😃

@icemac icemac merged commit f3ef8b3 into pytest-dev:master Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants