From 7100e628ae21e58e674a28778c83f94e5eec8778 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 5 Apr 2020 17:34:22 +0200 Subject: [PATCH 1/3] faulthandler: trylast=True It should happen as late as possible before the test runs. Ref: https://github.com/pytest-dev/pytest/issues/7022 --- src/_pytest/faulthandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/faulthandler.py b/src/_pytest/faulthandler.py index 8d723c206cb..4ca903146a6 100644 --- a/src/_pytest/faulthandler.py +++ b/src/_pytest/faulthandler.py @@ -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] From 3e2584508b7407d8458fce8817efb8a38ee3676b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 8 Apr 2020 18:20:57 +0200 Subject: [PATCH 2/3] rebuild From e4685ce77babac4bd53a178bbb3eb1fa879d9367 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 8 Apr 2020 19:22:04 +0200 Subject: [PATCH 3/3] rebuild