Add try/finally in tests to make sure teardown() is called.

This commit is contained in:
Paul Romano 2014-05-27 16:51:52 -04:00
parent 692872297b
commit cbb4c1aeb9
75 changed files with 496 additions and 346 deletions

View file

@ -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()