skip test that fails if VTK is missing (#2517)

This commit is contained in:
Paul Wilson 2023-05-12 13:22:22 -05:00 committed by GitHub
parent 1cb22075ef
commit eeb8a1f451
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,8 @@ def myprojectionplot():
def test_voxel_plot(run_in_tmpdir):
# attempt to preload VTK and skip this test if unavailable
vtk = pytest.importorskip('vtk')
surf1 = openmc.Sphere(r=500, boundary_type='vacuum')
cell1 = openmc.Cell(region=-surf1)
geometry = openmc.Geometry([cell1])