Skip to content

Commit 83f1ba1

Browse files
committed
tcc test is still broken on mac in CI
1 parent f11556b commit 83f1ba1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/conftest.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
import platform
23

34
ipopt_model_dict = {}
45

@@ -13,9 +14,11 @@ def c():
1314
return ipopt.Model(jit="C")
1415

1516
ipopt_model_dict["ipopt_llvm"] = llvm
16-
# On macOS, loading dynamic library of Gurobi/COPT/Mosek before loading libtcc will cause memory error
17-
# The reason is still unclear
18-
ipopt_model_dict["ipopt_c"] = c
17+
system = platform.system()
18+
if system != "Darwin":
19+
# On macOS, loading dynamic library of Gurobi/COPT/Mosek before loading libtcc will cause memory error
20+
# The reason is still unclear
21+
ipopt_model_dict["ipopt_c"] = c
1922

2023

2124
@pytest.fixture(params=ipopt_model_dict.keys())

0 commit comments

Comments
 (0)