Skip to content

Commit 9738f21

Browse files
author
Ran Byron
authored
Merge pull request EverythingMe#3 from jonau/master
fix deprecated __multicall__ argument
2 parents 9bc3599 + ccb3e2c commit 9738f21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pytest_blocker/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ def pytest_configure(config):
1313
config.addinivalue_line('markers', config_line)
1414

1515

16-
def pytest_runtest_makereport(item, call, __multicall__):
16+
@pytest.hookimpl(hookwrapper=True)
17+
def pytest_runtest_makereport(item, call):
1718
# get current report status from _pytest.runner.pytest_runtest_makereport
18-
report = __multicall__.execute()
19+
outcome = yield
20+
report = outcome.get_result()
1921
if report.failed and item.get_marker('blocker'):
2022
skip_reason = "Blocker test {0} failed, skipping remaining tests.".format(item.name)
2123
for test in item.session.items:
2224
if test.name != item.name:
2325
test.add_marker(pytest.mark.skipif(True, reason=skip_reason))
24-
return report

0 commit comments

Comments
 (0)