Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest_blocker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def pytest_runtest_makereport(item, call):
# get current report status from _pytest.runner.pytest_runtest_makereport
outcome = yield
report = outcome.get_result()
if report.failed and item.get_marker('blocker'):
if report.failed and item.get_closest_marker('blocker'):
skip_reason = "Blocker test {0} failed, skipping remaining tests.".format(item.name)
for test in item.session.items:
if test.name != item.name:
Expand Down
2 changes: 1 addition & 1 deletion pytest_blocker/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2'
__version__ = '0.2.1'