Skip to content

Commit 8bc206d

Browse files
committed
ignore s3 teardown errors
1 parent 4e23817 commit 8bc206d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ filterwarnings = [
408408
"error",
409409
"ignore:Unclosed client session <aiohttp.client.ClientSession.*:ResourceWarning",
410410
"ignore:Numcodecs codecs are not in the Zarr version 3 specification.*:UserWarning",
411+
# s3fs finalizers can fail during session cleanup when aiobotocore sessions are garbage
412+
# collected without being entered. This is a known issue in s3fs/aiobotocore, and pytest
413+
# per-test filterwarnings markers can't catch it (https://github.com/pytest-dev/pytest/issues/14096).
414+
"ignore:Exception ignored in[\\s\\S]*Session was never entered:pytest.PytestUnraisableExceptionWarning",
411415
]
412416
markers = [
413417
"asyncio: mark test as asyncio test",

0 commit comments

Comments
 (0)