Skip to content

Commit 371a5dd

Browse files
committed
fixup
1 parent e684299 commit 371a5dd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/test_array.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ async def test_nchunks_initialized(test_cls: type[Array] | type[AsyncArray[Any]]
351351
assert observed == expected
352352

353353

354-
@pytest.mark.parametrize("test_cls", [Array, AsyncArray[Any]])
355-
async def test_chunks_initialized(test_cls: type[Array] | type[AsyncArray[Any]]) -> None:
354+
async def test_chunks_initialized() -> None:
356355
"""
357356
Test that chunks_initialized accurately returns the keys of stored chunks.
358357
"""
@@ -364,12 +363,7 @@ async def test_chunks_initialized(test_cls: type[Array] | type[AsyncArray[Any]])
364363
)
365364
for keys, region in zip(chunks_accumulated, arr._iter_chunk_regions(), strict=False):
366365
arr[region] = 1
367-
368-
if test_cls == Array:
369-
observed = sorted(await chunks_initialized(arr)) # Why doesn't mypy error here?
370-
else:
371-
observed = sorted(await chunks_initialized(arr._async_array))
372-
366+
observed = sorted(await chunks_initialized(arr._async_array))
373367
expected = sorted(keys)
374368
assert observed == expected
375369

0 commit comments

Comments
 (0)