Skip to content

Commit

Permalink
Merge pull request pytest-dev#94 from bao-qian/master
Browse files Browse the repository at this point in the history
profile fixture
  • Loading branch information
eeaston authored Mar 20, 2019
2 parents a706853 + 78e685a commit f41215f
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 f41215f

Please sign in to comment.