pytest-dev / pluggy

A minimalist production ready plugin system
https://pluggy.readthedocs.io/en/latest/
MIT License
1.24k stars 121 forks source link

Warn when old-style hookwrapper raises during teardown #464

Closed bluetech closed 7 months ago

bluetech commented 8 months ago

Fix #463.

bluetech commented 8 months ago

Before this can be merged, I want to check how this affects some pluggy users. If this issue is widespread we might want to handle it differently.

bluetech commented 8 months ago

Did downstream testing, seems fine. Though the problems are more likely to occur in 3rd-party plugins of these downstreams, which I didn't check.

I also verified that the warning is issued on the pytest-mpl test suite.