Skip to content

Commit baec347

Browse files
Update python/cuopt/cuopt/tests/linear_programming/test_lp_solver.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 81719c3 commit baec347

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/cuopt/cuopt/tests/linear_programming/test_lp_solver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,9 @@ def test_parser_and_batch_solver():
479479

480480
# Call BatchSolve (deprecated; use sequential Solve instead)
481481
# 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-
482+
# Call BatchSolve (deprecated; use sequential Solve instead)
483+
with pytest.warns(DeprecationWarning, match="BatchSolve.*deprecated"):
484+
batch_solution, solve_time = solver.BatchSolve(data_model_list, settings)
485485
# Call Solve on each individual data model object
486486
individual_solutions = []
487487
for i in range(nb_solves):

0 commit comments

Comments
 (0)