We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d18fe35 commit f3eea16Copy full SHA for f3eea16
1 file changed
tests/pl/test_render_labels.py
@@ -493,9 +493,8 @@ def test_render_labels_rejects_float_dtype(dtype):
493
494
495
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.
+ # Regression test for #607: table row with instance_id=0 (background)
+ # used to crash with obnscure error.
499
labels_data = np.zeros((20, 20), dtype=np.int32)
500
labels_data[3:8, 3:8] = 1
501
labels_data[12:17, 12:17] = 2
0 commit comments