Skip to content

Commit

Permalink
Use pytest_runtest_call
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Feb 13, 2024
1 parent 9c131c1 commit 003bbe6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pytest_codspeed/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ def pytest_runtest_protocol(item: pytest.Item, nextitem: pytest.Item | None):
assert plugin.lib is not None
runtest_call = pytest.CallInfo.from_call(
lambda: _run_with_instrumentation(
plugin.lib, item.nodeid, item.config, item.runtest
plugin.lib,
item.nodeid,
item.config,
lambda: ihook.pytest_runtest_call(item=item),
),
"call",
)
Expand Down

0 comments on commit 003bbe6

Please sign in to comment.