Skip to content

Commit

Permalink
Broadening the search
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriottm committed Nov 16, 2023
1 parent e901244 commit 5c291ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ipi_tests/examples/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ def test_example(ex, verbose=False):
t0 = time.time()
nid = examples.index(ex)
runner = Runner_examples(Path("."))
print("Running example")
error_msg = runner.run(ex, nid)
print("Time for this example: {:4.1f} s \n".format(time.time() - t0))

if verbose:
if verbose:
print("ERROR ", error_msg)
return error_msg

if error_msg != None:
print("RAISING ERROR ", error_msg)
raise RuntimeError


Expand Down

0 comments on commit 5c291ae

Please sign in to comment.