Skip to content

Commit

Permalink
fix(test): updated the to_numpy conversion in the frontend tests (ivy…
Browse files Browse the repository at this point in the history
…-llc#26679)

Fixes the maximum recursion error which fails the frontend tests
  • Loading branch information
vedpatwardhan authored Oct 6, 2023
1 parent 6a205f7 commit 3dd98b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ivy_tests/test_ivy/helpers/function_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ def test_frontend_function(
frontend_ret_flat = flatten_frontend(
ret=ret, backend=backend_to_test, frontend_array_fn=frontend_config.native_array
)
frontend_ret_np_flat = [frontend_config.to_numpy(x) for x in frontend_ret_flat]
frontend_ret_np_flat = [x.ivy_array.to_numpy() for x in frontend_ret_flat]

# assuming value test will be handled manually in the test function
if not test_values:
Expand Down Expand Up @@ -2142,7 +2142,7 @@ def test_frontend_method(
frontend_ret_flat = flatten_frontend(
ret=ret, backend=ivy_backend, frontend_array_fn=frontend_config.native_array
)
frontend_ret_np_flat = [frontend_config.to_numpy(x) for x in frontend_ret_flat]
frontend_ret_np_flat = [x.ivy_array.to_numpy() for x in frontend_ret_flat]

# assuming value test will be handled manually in the test function
if not test_values:
Expand Down

0 comments on commit 3dd98b9

Please sign in to comment.