We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f11556b commit 83f1ba1Copy full SHA for 83f1ba1
tests/conftest.py
@@ -1,4 +1,5 @@
1
import pytest
2
+import platform
3
4
ipopt_model_dict = {}
5
@@ -13,9 +14,11 @@ def c():
13
14
return ipopt.Model(jit="C")
15
16
ipopt_model_dict["ipopt_llvm"] = llvm
- # 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
+ system = platform.system()
+ 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
22
23
24
@pytest.fixture(params=ipopt_model_dict.keys())
0 commit comments