Skip to content

Commit

Permalink
Suppress third-party deprecation warnings in Python 3.12
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Vasilyev <[email protected]>
  • Loading branch information
nolar committed Oct 9, 2023
1 parent 6424945 commit 03b4885
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 03b4885

Please sign in to comment.