mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
skip test that fails if VTK is missing (#2517)
This commit is contained in:
parent
1cb22075ef
commit
eeb8a1f451
1 changed files with 2 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue