Skip to content

Commit e5c39fd

Browse files
committed
fix failing tests
1 parent d59bc4f commit e5c39fd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ addopts = [
407407
filterwarnings = [
408408
"error",
409409
"ignore:Unclosed client session <aiohttp.client.ClientSession.*:ResourceWarning",
410-
"ignore:Numcodecs codecs are not in the Zarr version 3 specification.*:UserWarning"
410+
"ignore:Numcodecs codecs are not in the Zarr version 3 specification.*:UserWarning",
411411
]
412412
markers = [
413413
"asyncio: mark test as asyncio test",

tests/test_store/test_fsspec.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
pytest.mark.filterwarnings(
4141
"ignore:coroutine 'ClientCreatorContext.__aexit__' was never awaited:RuntimeWarning"
4242
),
43+
# s3fs finalizers can fail when sessions are garbage collected without being entered
44+
pytest.mark.filterwarnings(
45+
"ignore:Exception ignored in.*finalize object.*:pytest.PytestUnraisableExceptionWarning"
46+
),
4347
]
4448

4549
fsspec = pytest.importorskip("fsspec")
@@ -129,7 +133,7 @@ async def test_basic() -> None:
129133
assert out[0].to_bytes() == data[1:]
130134

131135

132-
class TestFsspecStoreS3(StoreTests[FsspecStore, cpu.Buffer]):
136+
class TestFsspecStoreS3(StoreTests[FsspecStore, cpu.Buffer]): # type: ignore[misc]
133137
store_cls = FsspecStore
134138
buffer_cls = cpu.Buffer
135139

0 commit comments

Comments
 (0)