From e0459ddbf3fc93e335ea3525c37a501c6ef22737 Mon Sep 17 00:00:00 2001 From: metab0t Date: Sun, 9 Jun 2024 17:35:15 +0800 Subject: [PATCH] Fix nlp test --- tests/test_nlp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_nlp.py b/tests/test_nlp.py index 4263cc5..fd87be5 100644 --- a/tests/test_nlp.py +++ b/tests/test_nlp.py @@ -4,11 +4,11 @@ import pyoptinterface as poi from pyoptinterface import ipopt -if not ipopt.is_library_loaded(): - exit(1) - def test_ipopt(): + if not ipopt.is_library_loaded(): + pytest.skip("Ipopt library is not loaded") + model = ipopt.Model() x = model.add_variable(lb=0.1, ub=10.0, start=0.8)