From bd2bba24734fc8c6a1ec6a16368c0f6e3af00d40 Mon Sep 17 00:00:00 2001 From: Ved Patwardhan <54766411+VedPatwardhan@users.noreply.github.com> Date: Wed, 1 Mar 2023 22:33:59 +0530 Subject: [PATCH] Updated tests such that compiler.so setup is optional for running ivy tests (#11503) --- ivy_tests/test_ivy/helpers/function_testing.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ivy_tests/test_ivy/helpers/function_testing.py b/ivy_tests/test_ivy/helpers/function_testing.py index 0bb36332878f8..6a4395311b33d 100644 --- a/ivy_tests/test_ivy/helpers/function_testing.py +++ b/ivy_tests/test_ivy/helpers/function_testing.py @@ -63,8 +63,12 @@ def framework_comparator(frontend): ) from . import globals -os.environ["IVY_ROOT"] = ".ivy" -import ivy.compiler.compiler as ic +try: + os.environ["IVY_ROOT"] = ".ivy" + import ivy.compiler.compiler as ic +except Exception: + ic = types.SimpleNamespace() + ic.compile = lambda func, args, kwargs: func # Temporary (.so) configuration