From 0731b22a3498a6ecbe3706d1c72e08f273f30502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 29 Dec 2024 16:25:20 +0200 Subject: [PATCH] test: mark Python 3.14+ get/set_event_loop_policy deprecations known https://github.com/pytest-dev/pytest-asyncio/issues/1025 --- noxfile.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/noxfile.py b/noxfile.py index 451887b..1cb6277 100644 --- a/noxfile.py +++ b/noxfile.py @@ -17,6 +17,16 @@ def test(session: nox.Session) -> None: "DeprecationWarning:pytest_asyncio.plugin" ), "-W", + ( # https://github.com/pytest-dev/pytest-asyncio/issues/1025 + r"default:'asyncio.get_event_loop_policy':" + "DeprecationWarning:pytest_asyncio.plugin" + ), + "-W", + ( # https://github.com/pytest-dev/pytest-asyncio/issues/1025 + r"default:'asyncio.set_event_loop_policy':" + "DeprecationWarning:pytest_asyncio.plugin" + ), + "-W", ( # https://github.com/aio-libs/aiohttp/pull/7302, included in aiohttp >= 3.9 "default:datetime.datetime.utcfromtimestamp:" "DeprecationWarning:aiohttp.cookiejar"