From 731776702d6f50b65b353709f206257bb2a73b78 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 11 Apr 2017 21:53:01 -0300 Subject: [PATCH] Fix hook name in LsofFdLeakChecker --- _pytest/pytester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/pytester.py b/_pytest/pytester.py index 6381595ee..6dd6772b2 100644 --- a/_pytest/pytester.py +++ b/_pytest/pytester.py @@ -88,7 +88,7 @@ class LsofFdLeakChecker(object): return True @pytest.hookimpl(hookwrapper=True, tryfirst=True) - def pytest_runtest_item(self, item): + def pytest_runtest_protocol(self, item): lines1 = self.get_open_files() yield if hasattr(sys, "pypy_version_info"):