diff --git a/tests/src/python/test_qgscoordinatereferencesystemmodel.py b/tests/src/python/test_qgscoordinatereferencesystemmodel.py index 909d6369d999..9e6dc222e581 100644 --- a/tests/src/python/test_qgscoordinatereferencesystemmodel.py +++ b/tests/src/python/test_qgscoordinatereferencesystemmodel.py @@ -790,7 +790,7 @@ def test_proxy_model(self): for row in range(model.rowCount(projected_index)) if model.data( model.index(row, 0, projected_index), - Qt.DisplayRole, + Qt.ItemDataRole.DisplayRole, ) == "Albers Equal Area" ][0]