diff --git a/pytest-profiling/pytest_profiling.py b/pytest-profiling/pytest_profiling.py index b531c09fb7d..459677cfca4 100644 --- a/pytest-profiling/pytest_profiling.py +++ b/pytest-profiling/pytest_profiling.py @@ -64,7 +64,7 @@ def pytest_terminal_summary(self, terminalreporter): terminalreporter.write("SVG profile in {svg}.\n".format(svg=self.svg_name)) @pytest.hookimpl(hookwrapper=True) - def pytest_runtest_call(self, item): + def pytest_runtest_protocol(self, item, nextitem): prof_filename = os.path.abspath(os.path.join(self.dir, clean_filename(item.name) + ".prof")) try: os.makedirs(os.path.dirname(prof_filename))