diff --git a/tests/regression_tests/plot_voxel/test.py b/tests/regression_tests/plot_voxel/test.py index 1e57e557d6..f6af8fa116 100644 --- a/tests/regression_tests/plot_voxel/test.py +++ b/tests/regression_tests/plot_voxel/test.py @@ -1,8 +1,9 @@ import glob import hashlib import os -from subprocess import run +from subprocess import check_call import importlib + import h5py import openmc import pytest @@ -23,8 +24,8 @@ class PlotVoxelTestHarness(TestHarness): def _run_openmc(self): openmc.plot_geometry(openmc_exec=config['exe']) - run(['../../../scripts/openmc-voxel-to-vtk'] + - glob.glob('plot_4.h5'), check=True) + check_call(['../../../scripts/openmc-voxel-to-vtk'] + + glob.glob('plot_4.h5')) def _test_output_created(self): """Make sure *.ppm has been created."""