Fix hook name in LsofFdLeakChecker

This commit is contained in:
Bruno Oliveira 2017-04-11 21:53:01 -03:00
parent 0baf5e1499
commit 731776702d
1 changed files with 1 additions and 1 deletions

View File

@ -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"):