Skip to content

Commit 6c50383

Browse files
committed
Use @pytest.hookimpl instead of soft-deprecated @pytest.mark.tryfirst
1 parent 81b9e9e commit 6c50383

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pytest_forked/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def pytest_load_initial_conftests(early_config, parser, args):
3838
)
3939

4040

41-
@pytest.mark.tryfirst
41+
@pytest.hookimpl(tryfirst=True)
4242
def pytest_runtest_protocol(item):
4343
if item.config.getvalue("forked") or item.get_closest_marker("forked"):
4444
reports = forked_run_report(item)

0 commit comments

Comments
 (0)