Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed May 21, 2024
1 parent 72bb2a9 commit 209a07d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,8 @@ def run_example_tests():
logging.info("Skipping %s" % name_with_parent_dir)
continue
examples_scripts.append(os.path.join(root, f))
try:
__run_example_tests_helper(examples_scripts)
except (ImportError, ValueError, ModuleNotFoundError) as e:
if "linkml" in str(e):
pass # this is OK because linkml is not always installed
else:
raise e

__run_example_tests_helper(examples_scripts)


def run_example_ros3_tests():
Expand Down Expand Up @@ -141,6 +136,11 @@ def __run_example_tests_helper(examples_scripts):
ws.append(w)
for w in ws:
warnings.showwarning(w.message, w.category, w.filename, w.lineno, w.line)
except (ImportError, ValueError, ModuleNotFoundError) as e:
if "linkml" in str(e):
pass # this is OK because linkml is not always installed
else:
raise e
except Exception:
print(traceback.format_exc())
FAILURES += 1
Expand Down

0 comments on commit 209a07d

Please sign in to comment.