diff --git a/tests/test_particle_restart/test_particle_restart.py b/tests/test_particle_restart/test_particle_restart.py index 32adebe86a..17e4690f46 100644 --- a/tests/test_particle_restart/test_particle_restart.py +++ b/tests/test_particle_restart/test_particle_restart.py @@ -3,6 +3,7 @@ import os from subprocess import Popen, STDOUT, PIPE import filecmp +import glob pwd = os.path.dirname(__file__) @@ -29,10 +30,10 @@ def test_run_restart(): proc = Popen([pwd + '/../../src/openmc -r particle_10_903.binary'], stderr=PIPE, stdout=PIPE, shell=True) stdout, stderr = proc.communicate() - assert stderr != '' + assert stderr == '' def teardown(): - output = [pwd + '/particle_10_903.binary', pwd + '/results_test.dat'] + output = glob.glob(pwd + '/particle_*.binary') + [pwd + '/results_test.dat'] for f in output: if os.path.exists(f): os.remove(f)