Skip to content

Commit

Permalink
faulthandler: trylast=True
Browse files Browse the repository at this point in the history
It should happen as late as possible before the test runs.

Ref: pytest-dev#7022
  • Loading branch information
blueyed committed Apr 5, 2020
1 parent cb06bc7 commit 7100e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/faulthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _get_stderr_fileno():
def get_timeout_config_value(config):
return float(config.getini("faulthandler_timeout") or 0.0)

@pytest.hookimpl(hookwrapper=True)
@pytest.hookimpl(hookwrapper=True, trylast=True)
def pytest_runtest_protocol(self, item):
timeout = self.get_timeout_config_value(item.config)
stderr = item.config._store[fault_handler_stderr_key]
Expand Down

0 comments on commit 7100e62

Please sign in to comment.