diff --git a/python/tests/test_Colormap.py b/python/tests/test_Colormap.py index f288ffb24..fbe65e2bd 100644 --- a/python/tests/test_Colormap.py +++ b/python/tests/test_Colormap.py @@ -127,7 +127,7 @@ class TestColormap: def test_add(self): c = Colormap.from_predefined('jet') c += c - assert (np.allclose(c.colors[:len(c.colors)],c.colors[len(c.colors):])) + assert (np.allclose(c.colors[:len(c.colors)//2],c.colors[len(c.colors)//2:])) def test_list(self): Colormap.list_predefined()