Skip to content

Commit

Permalink
Test find_objects w/incorrect array type (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Mar 14, 2023
1 parent a135802 commit 4872fcd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_dask_image/test_ndmeasure/test_find_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ def label_image_with_empty_chunk():
return label_image


def test_find_objects_err(label_image):
label_image = label_image.astype(float)
with pytest.raises(ValueError):
dask_image.ndmeasure.find_objects(label_image)


def test_find_objects(label_image):
result = dask_image.ndmeasure.find_objects(label_image)
assert isinstance(result, dd.DataFrame)
Expand Down

0 comments on commit 4872fcd

Please sign in to comment.