Skip to content

Commit f3eea16

Browse files
authored
Update test_render_labels.py
1 parent d18fe35 commit f3eea16

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/pl/test_render_labels.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,8 @@ def test_render_labels_rejects_float_dtype(dtype):
493493

494494

495495
def test_render_labels_rejects_background_instance_id_in_table():
496-
# Regression test for #607: a table row with instance_id=0 (background label)
497-
# used to crash with `IndexError: Boolean index has wrong length` from deep
498-
# inside the color-vector mask, with no mention of background label 0.
496+
# Regression test for #607: table row with instance_id=0 (background)
497+
# used to crash with obnscure error.
499498
labels_data = np.zeros((20, 20), dtype=np.int32)
500499
labels_data[3:8, 3:8] = 1
501500
labels_data[12:17, 12:17] = 2

0 commit comments

Comments
 (0)