Skip to content

Use new-style hook wrappers #542

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

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

nicoddemus
Copy link
Member

The new-style hook wrappers are easier to use because you do not need to call outcome.force_exception on errors, and doing so prevents other hook callers from running.

This requires pluggy>=1.1.

The [new-style hook wrappers](https://pluggy.readthedocs.io/en/stable/#wrappers) are easier to use because you do not need to call `outcome.force_exception` on errors, and doing
so prevents other hook callers from running.

This requires pluggy>=1.1.
@nicoddemus
Copy link
Member Author

Going ahead and merge this as it is just a small internal improvement. 👍

@nicoddemus nicoddemus merged commit bd3469b into pytest-dev:master Feb 7, 2024
@nicoddemus nicoddemus deleted the new-hook-wrappers branch February 7, 2024 20:59
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.

1 participant