mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Changing to check_call to support Python < 3.5
This commit is contained in:
parent
fd92aac49c
commit
291aa61f12
1 changed files with 4 additions and 3 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue