Skip to content

Commit 71259b3

Browse files
committed
remove test that made no sense after allowing dtype inference in full_like
1 parent 9a0b8f6 commit 71259b3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/test_api.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,6 @@ async def test_array_like_creation(
162162
assert np.all(Array(new_arr)[:] == expect_fill)
163163

164164

165-
async def test_invalid_full_like() -> None:
166-
"""
167-
Test that a fill value that is incompatible with the proposed dtype is rejected
168-
"""
169-
ref_arr = zarr.ones(store={}, shape=(11, 12), dtype="uint8", chunks=(11, 12))
170-
fill = 4
171-
with pytest.raises(ValueError, match=f"fill value {fill} is not valid for dtype DataType.bool"):
172-
await zarr.api.asynchronous.full_like(ref_arr, path="foo", fill_value=fill, dtype="bool")
173-
174-
175165
# TODO: parametrize over everything this function takes
176166
@pytest.mark.parametrize("store", ["memory"], indirect=True)
177167
def test_create_array(store: Store, zarr_format: ZarrFormat) -> None:

0 commit comments

Comments
 (0)