From 779ae8b67beaa85c7cd38423875600b0f4a72577 Mon Sep 17 00:00:00 2001 From: Nina Burgdorfer Date: Thu, 16 Nov 2023 19:52:19 +0100 Subject: [PATCH] Fix tests --- .../feature_tests/ffront_tests/test_execution.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py b/tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py index 29eb95faeb..58181fd7a8 100644 --- a/tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py +++ b/tests/next_tests/integration_tests/feature_tests/ffront_tests/test_execution.py @@ -363,12 +363,8 @@ def cast_nested_tuple( a = cases.allocate(cartesian_case, cast_tuple, "a")() b = cases.allocate(cartesian_case, cast_tuple, "b")() - a_casted_to_int_outside_of_gt4py = cases.allocate( - cartesian_case, cast_tuple, "a", dtype=int32 - )() - b_casted_to_int_outside_of_gt4py = cases.allocate( - cartesian_case, cast_tuple, "b", dtype=int32 - )() + a_casted_to_int_outside_of_gt4py = gtx.np_as_located_field(IDim)(np.asarray(a).astype(int32)) + b_casted_to_int_outside_of_gt4py = gtx.np_as_located_field(IDim)(np.asarray(b).astype(int32)) out_tuple = cases.allocate(cartesian_case, cast_tuple, cases.RETURN)() out_nested_tuple = cases.allocate(cartesian_case, cast_nested_tuple, cases.RETURN)()