From 03b488597e27751258307a019f2d38352f70e630 Mon Sep 17 00:00:00 2001 From: Sergey Vasilyev Date: Mon, 9 Oct 2023 23:21:18 +0200 Subject: [PATCH] Suppress third-party deprecation warnings in Python 3.12 Signed-off-by: Sergey Vasilyev --- tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index bfa2fba0..6946a605 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -38,6 +38,10 @@ def pytest_configure(config): # TODO: Remove when fixed in https://github.com/pytest-dev/pytest-asyncio/issues/460: config.addinivalue_line('filterwarnings', 'ignore:There is no current event loop:DeprecationWarning:pytest_asyncio') + # Python 3.12 transitional period: + config.addinivalue_line('filterwarnings', 'ignore:datetime*:DeprecationWarning:dateutil') + config.addinivalue_line('filterwarnings', 'ignore:datetime*:DeprecationWarning:freezegun') + def pytest_addoption(parser): parser.addoption("--only-e2e", action="store_true", help="Execute end-to-end tests only.")