Spot check in error message from failed run

This commit is contained in:
Patrick Shriwise 2022-11-23 23:17:11 -06:00
parent 7a203fbf72
commit fe47d565fd

View file

@ -93,5 +93,6 @@ def test_input_arg(run_in_tmpdir):
# now ensure we get an error for an incorrect filename,
# even in the presence of other, valid XML files
with pytest.raises(RuntimeError):
openmc.run(input_file='ex-em-ell.xml')
with pytest.raises(RuntimeError) as execinfo:
openmc.run(input_file='ex-em-ell.xml')
assert 'ex-em-ell.xml' in execinfo.value