Skip to content

Commit f68b788

Browse files
committed
skip
1 parent b3617cc commit f68b788

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/test_operator.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,13 @@ def test_outputs_bool_operator():
289289

290290
def find_mapdl():
291291
try:
292-
dpf.core.misc.find_ansys()
292+
path = dpf.core.misc.find_ansys()
293+
if os.name == 'nt':
294+
exe = os.path.join(path,"ansys","bin","winx64","ANSYS.exe")
295+
return os.path.isfile(exe)
296+
else :
297+
return False
298+
293299
return True
294300
except:
295301
return False

tests/test_plugins.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11

22
from ansys.dpf import core as dpf
33
import pytest
4+
import os
45

56

67
def try_load_cff_operators():
78
try:
9+
if os.name=="posix":
10+
return False
811
dpf.load_library("Ans.Dpf.CFF.dll","cff")
912
return True
1013
except:

0 commit comments

Comments
 (0)