diff --git a/Tests/test_color_lut.py b/Tests/test_color_lut.py index 36ab187f261..b7878546fea 100644 --- a/Tests/test_color_lut.py +++ b/Tests/test_color_lut.py @@ -382,9 +382,10 @@ def test_numpy_sources(self) -> None: table = numpy.ones((7, 6, 5, 3), dtype=numpy.float16) lut = ImageFilter.Color3DLUT((5, 6, 7), table) - assert isinstance(lut.table, numpy.ndarray) - assert lut.table.dtype == table.dtype - assert lut.table.shape == (table.size,) + lut_table = lut.table + assert isinstance(lut_table, numpy.ndarray) + assert lut_table.dtype == table.dtype + assert lut_table.shape == (table.size,) table = numpy.ones((7 * 6 * 5, 3), dtype=numpy.float16) lut = ImageFilter.Color3DLUT((5, 6, 7), table)