pytest-dev/pluggy

Warn when old-style hookwrapper raises during teardown

bluetech opened this issue · 0 comments

Old-style hookwrapper raising during teardown causes subsequent teardowns to be deferred until GC (see #244). We've fixed this in pluggy 1.2 using new-style wrappers or Result.force_exception.

If we detect the situation, let's warn about it. See for example pytest-dev/pytest#11714 where a warning would have helped.