Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,13 @@ filterwarnings = [
"error",
"ignore:Unclosed client session <aiohttp.client.ClientSession.*:ResourceWarning",
"ignore:Numcodecs codecs are not in the Zarr version 3 specification.*:UserWarning",
# "(in|while)" and "(in|on|while)" below: an error in a finalizer is reported as
# "Exception ignored in: ..." up to Python 3.13, and as "Exception ignored while ..." from 3.14.
# Weakref callbacks, which s3fs uses, can also say "Exception ignored on calling ..." from 3.14.
# s3fs finalizers can fail during session cleanup when aiobotocore sessions are garbage
# collected without being entered. This is a known issue in s3fs/aiobotocore, and pytest
# per-test filterwarnings markers can't catch it (https://github.com/pytest-dev/pytest/issues/14096).
"ignore:Exception ignored ((on calling weakref callback)|(in[\\s\\S]*Session was never entered)):pytest.PytestUnraisableExceptionWarning",
"ignore:Exception ignored (in|on|while)[\\s\\S]*Session was never entered:pytest.PytestUnraisableExceptionWarning",
# pytest-asyncio implicitly creates an event loop in _get_event_loop_no_warn during
# fixture setup/teardown and never closes it (allocation site verified with
# PYTHONTRACEMALLOC: pytest_asyncio/plugin.py). When the garbage collector reclaims
Expand All @@ -433,9 +436,10 @@ filterwarnings = [
# pipeline suites. The message contains only the __del__ repr, so these patterns cannot
# scope to pytest-asyncio specifically: a loop/socketpair leak in zarr's own sync
# machinery would also be silenced. Accepted tradeoff — revisit if zarr.core.sync grows
# loop-lifecycle changes.
"ignore:Exception ignored in[\\s\\S]*<function BaseEventLoop.__del__:pytest.PytestUnraisableExceptionWarning",
"ignore:Exception ignored in[\\s\\S]*<socket.socket fd=\\d+, family=(1|2), type=1:pytest.PytestUnraisableExceptionWarning",
# loop-lifecycle changes. From Python 3.14, _get_event_loop_no_warn raises instead of creating
# a loop, so there the patterns only cover loops and sockets left open elsewhere.
"ignore:Exception ignored (in|while)[\\s\\S]*<function BaseEventLoop.__del__:pytest.PytestUnraisableExceptionWarning",
"ignore:Exception ignored (in|while)[\\s\\S]*<socket.socket fd=\\d+, family=(1|2), type=1:pytest.PytestUnraisableExceptionWarning",
]
markers = [
"gpu: mark a test as requiring CuPy and GPU",
Expand Down
Loading