Skip to content

Commit

Permalink
guard against cyipopt not avilable
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Jun 14, 2024
1 parent b1cc0a4 commit 170df3e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ def intermediate(

# The 13-arg callback works with cyipopt < 1.3, but we will use the
# get_current_iterate method, which is only available in 1.3+
@unittest.skipIf(not cyipopt_ge_1_3, "cyipopt version < 1.3.0")
@unittest.skipIf(
not cyipopt_available or not cyipopt_ge_1_3, "cyipopt version < 1.3.0"
)
def test_solve_13arg_callback(self):
m = create_model1()

Expand Down

0 comments on commit 170df3e

Please sign in to comment.