aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornik-bes <nik-bes@yandex-team.com>2023-02-17 18:17:56 +0300
committernik-bes <nik-bes@yandex-team.com>2023-02-17 18:17:56 +0300
commitf07b46a5163f7e161f9b4c3d0126c1713ac99b10 (patch)
treea6e3535d089a37f8866add7591f67717297d1e78
parent2b3cb1e0b4b68b443fb412eb091927b95385f53e (diff)
downloadydb-f07b46a5163f7e161f9b4c3d0126c1713ac99b10.tar.gz
replace pytest.mark.tryfirst in ya.py plugin
https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
-rw-r--r--library/python/pytest/plugins/ya.py2
1 files changed, 1 insertions, 1 deletions
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)