File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ def pytest_configure(config):
13
13
config .addinivalue_line ('markers' , config_line )
14
14
15
15
16
- def pytest_runtest_makereport (item , call , __multicall__ ):
16
+ @pytest .hookimpl (hookwrapper = True )
17
+ def pytest_runtest_makereport (item , call ):
17
18
# get current report status from _pytest.runner.pytest_runtest_makereport
18
- report = __multicall__ .execute ()
19
+ outcome = yield
20
+ report = outcome .get_result ()
19
21
if report .failed and item .get_marker ('blocker' ):
20
22
skip_reason = "Blocker test {0} failed, skipping remaining tests." .format (item .name )
21
23
for test in item .session .items :
22
24
if test .name != item .name :
23
25
test .add_marker (pytest .mark .skipif (True , reason = skip_reason ))
24
- return report
You can’t perform that action at this time.
0 commit comments