Closed bluetech closed 7 months ago
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.
Result.force_exception
If we detect the situation, let's warn about it. See for example https://github.com/pytest-dev/pytest/issues/11714 where a warning would have helped.
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 https://github.com/pytest-dev/pytest/issues/11714 where a warning would have helped.