Skip to content

Commit 6553b10

Browse files
author
Hermann Leinweber
committed
Bug fix: Replaced deprecated function call
[pytest #4546](pytest-dev/pytest#4546) Signed-off-by: Hermann Leinweber <[email protected]>
1 parent 9738f21 commit 6553b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_blocker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def pytest_runtest_makereport(item, call):
1818
# get current report status from _pytest.runner.pytest_runtest_makereport
1919
outcome = yield
2020
report = outcome.get_result()
21-
if report.failed and item.get_marker('blocker'):
21+
if report.failed and item.get_closest_marker('blocker'):
2222
skip_reason = "Blocker test {0} failed, skipping remaining tests.".format(item.name)
2323
for test in item.session.items:
2424
if test.name != item.name:

0 commit comments

Comments
 (0)