Skip to content

Commit 717b29e

Browse files
committed
fix: suppress mesh_ops test only on darwin platforms
1 parent c73c05d commit 717b29e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

nipype/algorithms/tests/test_mesh_ops.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
from nipype.algorithms import mesh as m
1717

1818
notvtk = True
19-
"""
20-
try:
21-
from tvtk.api import tvtk
22-
notvtk = False
23-
except ImportError:
24-
pass
25-
"""
19+
import platform
20+
if 'darwin' not in platform.system().lower():
21+
try:
22+
from tvtk.api import tvtk
23+
notvtk = False
24+
except ImportError:
25+
pass
2626

2727
@skipif(notvtk)
2828
def test_ident_distances():

0 commit comments

Comments
 (0)