From 63cafa1e68cd1ea2699063e9c9e6ebcea4d64083 Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Wed, 9 Apr 2014 08:41:22 -0400 Subject: [PATCH] changed assert on particle restart --- tests/test_particle_restart/test_particle_restart.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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.*') + \