From f07b46a5163f7e161f9b4c3d0126c1713ac99b10 Mon Sep 17 00:00:00 2001 From: nik-bes <nik-bes@yandex-team.com> Date: Fri, 17 Feb 2023 18:17:56 +0300 Subject: replace pytest.mark.tryfirst in ya.py plugin https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers --- library/python/pytest/plugins/ya.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/python/pytest/plugins') diff --git a/library/python/pytest/plugins/ya.py b/library/python/pytest/plugins/ya.py index fae59f74d8..de79dbe735 100644 --- a/library/python/pytest/plugins/ya.py +++ b/library/python/pytest/plugins/ya.py @@ -528,7 +528,7 @@ def pytest_collectreport(report): sys.stderr.write(yatest_lib.tools.to_utf8(report.longrepr)) -@pytest.mark.tryfirst +@pytest.hookimpl(tryfirst=True) def pytest_pyfunc_call(pyfuncitem): testfunction = pyfuncitem.obj iscoroutinefunction = getattr(inspect, "iscoroutinefunction", None) -- cgit v1.2.3