Skip to content

Commit 413ca8a

Browse files
authored
faulthandler: trylast=True (#7025)
It should happen as late as possible before the test runs. Ref: #7022
1 parent eb00182 commit 413ca8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/faulthandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _get_stderr_fileno():
8080
def get_timeout_config_value(config):
8181
return float(config.getini("faulthandler_timeout") or 0.0)
8282

83-
@pytest.hookimpl(hookwrapper=True)
83+
@pytest.hookimpl(hookwrapper=True, trylast=True)
8484
def pytest_runtest_protocol(self, item):
8585
timeout = self.get_timeout_config_value(item.config)
8686
stderr = item.config._store[fault_handler_stderr_key]

0 commit comments

Comments
 (0)