Skip to content

Commit

Permalink
Fix docstring tests failing due to incorrect namespace access ivy-llc…
Browse files Browse the repository at this point in the history
  • Loading branch information
CatB1t committed Feb 19, 2023
1 parent 413cfe9 commit e6d6945
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ivy_tests/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@ def check_docstring_examples_run(
if not hasattr(fn, "__name__"):
return True
fn_name = fn.__name__
if fn_name not in ivy.backend.backend_handler.ivy_original_dict:
if fn_name not in ivy.utils.backend.handler.ivy_original_dict:
return True

if from_container:
docstring = getattr(
ivy.backend.backend_handler.ivy_original_dict["Container"], fn_name
ivy.utils.backend.handler.ivy_original_dict["Container"], fn_name
).__doc__
elif from_array:
docstring = getattr(
ivy.backend.backend_handler.ivy_original_dict["Array"], fn_name
ivy.utils.backend.handler.ivy_original_dict["Array"], fn_name
).__doc__
else:
docstring = ivy.backend.backend_handler.ivy_original_dict[fn_name].__doc__
docstring = ivy.utils.backend.handler.ivy_original_dict[fn_name].__doc__
if docstring is None:
return True

Expand Down

0 comments on commit e6d6945

Please sign in to comment.