We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9738f21 commit 6553b10Copy full SHA for 6553b10
pytest_blocker/__init__.py
@@ -18,7 +18,7 @@ def pytest_runtest_makereport(item, call):
18
# get current report status from _pytest.runner.pytest_runtest_makereport
19
outcome = yield
20
report = outcome.get_result()
21
- if report.failed and item.get_marker('blocker'):
+ if report.failed and item.get_closest_marker('blocker'):
22
skip_reason = "Blocker test {0} failed, skipping remaining tests.".format(item.name)
23
for test in item.session.items:
24
if test.name != item.name:
0 commit comments