Merge pull request #12022 from bluetech/revert-11721

Revert "Fix teardown error reporting when `--maxfail=1` (#11721)"
This commit is contained in:
Ran Benita
2024-02-23 15:34:32 +02:00
committed by GitHub
4 changed files with 3 additions and 54 deletions

View File

@@ -132,10 +132,6 @@ def runtestprotocol(
show_test_item(item)
if not item.config.getoption("setuponly", False):
reports.append(call_and_report(item, "call", log))
# If the session is about to fail or stop, teardown everything - this is
# necessary to correctly report fixture teardown errors (see #11706)
if item.session.shouldfail or item.session.shouldstop:
nextitem = None
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
# After all teardown hooks have been called
# want funcargs and request info to go away.