From 291aa61f12ba79e9eb3f2a905ee15f5f2041c314 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 8 Oct 2018 15:33:36 -0500 Subject: [PATCH] Changing to check_call to support Python < 3.5 --- tests/regression_tests/plot_voxel/test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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."""