Skip to content

Commit

Permalink
Updated tests such that compiler.so setup is optional for running ivy…
Browse files Browse the repository at this point in the history
… tests (#11503)
  • Loading branch information
vedpatwardhan authored Mar 1, 2023
1 parent 11bb359 commit bd2bba2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ivy_tests/test_ivy/helpers/function_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd2bba2

Please sign in to comment.