Fix Python 3.x incompatibility in trace test

This commit is contained in:
Anton Leontiev 2014-10-20 19:06:12 +04:00
parent 35f0e2b93d
commit 0576d42565

View file

@ -23,7 +23,7 @@ def test_run():
print(stdout)
returncode = proc.returncode
assert returncode == 0, 'OpenMC did not exit successfully.'
assert stdout.find('Simulating Particle 453') != -1
assert stdout.find(b'Simulating Particle 453') != -1
def test_created_statepoint():
statepoint = glob.glob(os.path.join(cwd, 'statepoint.10.*'))