diff --git a/tests/test_particle_restart/test_particle_restart.py b/tests/test_particle_restart/test_particle_restart.py index ae55f2d72a..e41ba96c49 100644 --- a/tests/test_particle_restart/test_particle_restart.py +++ b/tests/test_particle_restart/test_particle_restart.py @@ -39,9 +39,10 @@ def test_results(): def test_run_restart(): particle = glob.glob(cwd + '/particle_12_192.*') - proc = Popen([opts.exe, '-r', particle[0], cwd], stderr=PIPE, stdout=PIPE) - stdout, stderr = proc.communicate() - assert stderr == '', 'Particle restart not successful.' + proc = Popen([opts.exe, '-r', particle[0], cwd], stderr=STDOUT, stdout=PIPE) + print(proc.communicate()[0]) + returncode = proc.returncode + assert returncode == 0, 'Particle restart not successful.' def teardown(): output = glob.glob(cwd + '/statepoint.*') + \