Skip to content

Commit

Permalink
do raise an exception if test items can't be created (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogthefrog authored Jan 22, 2025
1 parent 53b93db commit 01d9987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modelgauge/tests/safe_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def make_test_items(self, dependency_helper: DependencyHelper) -> List[TestItem]
if len(test_items) == 0:
raise RuntimeError(f"No test items created from {data_file}")
except Exception as exc:
print(f"Error making test items from {data_file}: {exc}")
raise RuntimeError(f"Error making test items from {data_file}: {exc}")

return test_items

Expand Down

0 comments on commit 01d9987

Please sign in to comment.