From 6553b1083412ed826131032acc12991247699577 Mon Sep 17 00:00:00 2001 From: Hermann Leinweber Date: Fri, 26 Jul 2019 14:34:48 +0200 Subject: [PATCH 1/2] Bug fix: Replaced deprecated function call [pytest #4546](https://github.com/pytest-dev/pytest/issues/4546) Signed-off-by: Hermann Leinweber --- pytest_blocker/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_blocker/__init__.py b/pytest_blocker/__init__.py index e18d01a..5f07097 100644 --- a/pytest_blocker/__init__.py +++ b/pytest_blocker/__init__.py @@ -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: From 238646f67043ba2525874b26f7968bec3a92ac04 Mon Sep 17 00:00:00 2001 From: Hermann Leinweber Date: Fri, 26 Jul 2019 14:59:46 +0200 Subject: [PATCH 2/2] Update Version to 0.2.1 --- pytest_blocker/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_blocker/__version__.py b/pytest_blocker/__version__.py index b650ceb..fc79d63 100644 --- a/pytest_blocker/__version__.py +++ b/pytest_blocker/__version__.py @@ -1 +1 @@ -__version__ = '0.2' +__version__ = '0.2.1'