We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81719c3 commit baec347Copy full SHA for baec347
1 file changed
python/cuopt/cuopt/tests/linear_programming/test_lp_solver.py
@@ -479,9 +479,9 @@ def test_parser_and_batch_solver():
479
480
# Call BatchSolve (deprecated; use sequential Solve instead)
481
# DeprecationWarning is emitted when running against a build with the
482
- # deprecation; CI asserts it via pytest.warns
483
- batch_solution, solve_time = solver.BatchSolve(data_model_list, settings)
484
-
+ # Call BatchSolve (deprecated; use sequential Solve instead)
+ with pytest.warns(DeprecationWarning, match="BatchSolve.*deprecated"):
+ batch_solution, solve_time = solver.BatchSolve(data_model_list, settings)
485
# Call Solve on each individual data model object
486
individual_solutions = []
487
for i in range(nb_solves):
0 commit comments