diff options
author | nik-bes <nik-bes@yandex-team.com> | 2023-02-17 18:17:56 +0300 |
---|---|---|
committer | nik-bes <nik-bes@yandex-team.com> | 2023-02-17 18:17:56 +0300 |
commit | f07b46a5163f7e161f9b4c3d0126c1713ac99b10 (patch) | |
tree | a6e3535d089a37f8866add7591f67717297d1e78 /library/python | |
parent | 2b3cb1e0b4b68b443fb412eb091927b95385f53e (diff) | |
download | ydb-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
Diffstat (limited to 'library/python')
-rw-r--r-- | library/python/pytest/plugins/ya.py | 2 |
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) |