From 78e685afd42acaab80a8365d44cf105a40e41e34 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Fri, 21 Sep 2018 22:28:36 +0800 Subject: [PATCH] profile fixture fix https://github.com/manahl/pytest-plugins/issues/48 --- pytest-profiling/pytest_profiling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest-profiling/pytest_profiling.py b/pytest-profiling/pytest_profiling.py index a03f3ce60ce..070d29af69e 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))