Skip to content

Commit 88b3d80

Browse files
committed
algorithms: disable knapsack_solver_test.py if SCIP no unavailable
1 parent da7888a commit 88b3d80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ortools/algorithms/python/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ add_library(${PROJECT_NAMESPACE}::knapsack_solver_pybind11 ALIAS knapsack_solver
3333

3434
if(BUILD_TESTING)
3535
file(GLOB PYTHON_SRCS "*_test.py")
36+
if(NOT USE_SCIP)
37+
list(FILTER PYTHON_SRCS EXCLUDE REGEX "knapsack_solver_test.py$")
38+
endif()
3639
foreach(FILE_NAME IN LISTS PYTHON_SRCS)
3740
add_python_test(FILE_NAME ${FILE_NAME})
3841
endforeach()

0 commit comments

Comments
 (0)