Skip to content

Commit d6d0d35

Browse files
committed
ignore mypy arg-type error for deprecation test
1 parent 01f540d commit d6d0d35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_array.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ def test_array_v3_fill_value(store: MemoryStore, fill_value: int, dtype_str: str
229229

230230
async def test_create_deprecated() -> None:
231231
with pytest.warns(DeprecationWarning):
232-
with pytest.warns(FutureWarning, match="Pass"):
233-
await zarr.AsyncArray.create(MemoryStore(), (2, 2), dtype="f8", zarr_format=3)
232+
with pytest.warns(FutureWarning, match=re.escape("Pass shape=(2, 2) as keyword args")):
233+
await zarr.AsyncArray.create(MemoryStore(), (2, 2), dtype="f8") # type: ignore[arg-type]
234234
with pytest.warns(DeprecationWarning):
235-
with pytest.warns(FutureWarning, match="Pass"):
235+
with pytest.warns(FutureWarning, match=re.escape("Pass shape=(2, 2) as keyword args")):
236236
zarr.Array.create(MemoryStore(), (2, 2), dtype="f8")
237237

238238

0 commit comments

Comments
 (0)