Skip to content

Commit 7de543d

Browse files
fix failing tests
1 parent 84857fb commit 7de543d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def test_draw_segmentation_masks_errors(device):
409409
utils.draw_segmentation_masks(image=img, masks=masks_bad_shape)
410410
with pytest.raises(ValueError, match="Number of colors must be equal or larger than the number of objects"):
411411
utils.draw_segmentation_masks(image=img, masks=masks, colors=[])
412-
with pytest.raises(ValueError, match="`colors` must be a tuple or a string, or a list thereof"):
412+
with pytest.raises(ValueError, match="colors must be a tuple or a string, or a list thereof"):
413413
bad_colors = np.array(["red", "blue"]) # should be a list
414414
utils.draw_segmentation_masks(image=img, masks=masks, colors=bad_colors)
415415
with pytest.raises(ValueError, match="If passed as tuple, colors should be an RGB triplet"):

0 commit comments

Comments
 (0)