Skip to content

Commit

Permalink
profile fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
bao-qian authored Sep 21, 2018
1 parent 19c18c8 commit 78e685a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest-profiling/pytest_profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 78e685a

Please sign in to comment.