From bfd39d8b81919d3b183f40e6ba1e83d8a59d82ef Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Wed, 17 Jan 2024 10:55:03 +0100 Subject: [PATCH] cmake: enable math_opt solver_test.py --- ortools/math_opt/core/python/CMakeLists.txt | 1 - ortools/math_opt/core/python/solver_test.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ortools/math_opt/core/python/CMakeLists.txt b/ortools/math_opt/core/python/CMakeLists.txt index 8a3038334e..f9c881d63b 100644 --- a/ortools/math_opt/core/python/CMakeLists.txt +++ b/ortools/math_opt/core/python/CMakeLists.txt @@ -42,7 +42,6 @@ add_library(${PROJECT_NAMESPACE}::math_opt_pybind11 ALIAS math_opt_pybind11) if(BUILD_TESTING) file(GLOB PYTHON_SRCS "*_test.py") list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/solver_gurobi_test.py") # need gurobi - list(FILTER PYTHON_SRCS EXCLUDE REGEX ".*/solver_test.py") # need google3.testing.pybase.parameterized foreach(FILE_NAME IN LISTS PYTHON_SRCS) add_python_test( FILE_NAME ${FILE_NAME} diff --git a/ortools/math_opt/core/python/solver_test.py b/ortools/math_opt/core/python/solver_test.py index 3054e03337..7d71132f74 100644 --- a/ortools/math_opt/core/python/solver_test.py +++ b/ortools/math_opt/core/python/solver_test.py @@ -15,6 +15,7 @@ import threading from typing import Callable, Optional, Sequence import unittest +from absl.testing import parameterized from pybind11_abseil.status import StatusNotOk from ortools.math_opt import callback_pb2 from ortools.math_opt import model_parameters_pb2