mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Add try/finally in tests to make sure teardown() is called.
This commit is contained in:
parent
692872297b
commit
cbb4c1aeb9
75 changed files with 496 additions and 346 deletions
|
|
@ -51,7 +51,9 @@ if __name__ == '__main__':
|
|||
raise Exception('Must specify OpenMC executable from command line with --exe.')
|
||||
|
||||
# run tests
|
||||
test_run()
|
||||
test_created_statepoint()
|
||||
test_results()
|
||||
teardown()
|
||||
try:
|
||||
test_run()
|
||||
test_created_statepoint()
|
||||
test_results()
|
||||
finally:
|
||||
teardown()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue