Skip to content

Commit e0459dd

Browse files
committed
Fix nlp test
1 parent 8e24935 commit e0459dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_nlp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import pyoptinterface as poi
55
from pyoptinterface import ipopt
66

7-
if not ipopt.is_library_loaded():
8-
exit(1)
9-
107

118
def test_ipopt():
9+
if not ipopt.is_library_loaded():
10+
pytest.skip("Ipopt library is not loaded")
11+
1212
model = ipopt.Model()
1313

1414
x = model.add_variable(lb=0.1, ub=10.0, start=0.8)

0 commit comments

Comments
 (0)