Skip to content

Test rerun-except for setup errors - #349

Merged
icemac merged 1 commit into
pytest-dev:masterfrom
janmrow:test-rerun-except-setup-error
Aug 21, 2026
Merged

Test rerun-except for setup errors#349
icemac merged 1 commit into
pytest-dev:masterfrom
janmrow:test-rerun-except-setup-error

Conversation

@janmrow

@janmrow janmrow commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

This PR adds regression coverage for --rerun-except when an exception is raised during fixture setup.

Existing tests do not cover matching and non-matching --rerun-except filters for exceptions raised during setup.

The test covers both sides of the behavior:

  • matching ValueError prevents the rerun,
  • non-matching TypeError still allows one rerun.

No changelog entry has been included, as this change affects only tests and does not impact user behavior.

@icemac icemac added the no-changelog Skip the change log entry check for this pull request label Aug 21, 2026
@icemac
icemac merged commit eab650f into pytest-dev:master Aug 21, 2026
43 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Skip the change log entry check for this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants