From c0888f0aa984f0969634d0c43279bedc8c1a1508 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 13 Apr 2019 16:08:48 +0200 Subject: [PATCH] Use @pytest.hookimpl(hookwrapper=True) Ref: https://github.com/pytest-dev/pytest/issues/4562 --- testmon/pytest_testmon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testmon/pytest_testmon.py b/testmon/pytest_testmon.py index 28fb48d..9567d4b 100644 --- a/testmon/pytest_testmon.py +++ b/testmon/pytest_testmon.py @@ -208,7 +208,7 @@ def pytest_runtestloop(self, session): for nodeid in ignored_deselected: self.report_if_failed(nodeid) - @pytest.mark.hookwrapper + @pytest.hookimpl(hookwrapper=True) def pytest_runtest_protocol(self, item, nextitem): if self.config.getoption('testmon_readonly'): yield