python: Fix tests when SCIP and COINOR are disabled (#3261)

This commit is contained in:
Corentin Le Molgat
2022-06-03 17:09:29 +02:00
parent fd9820265d
commit 1ba0177af5
32 changed files with 91 additions and 132 deletions

View File

@@ -23,6 +23,8 @@ def main():
# [START solver]
# Create the linear solver with the GLOP backend.
solver = pywraplp.Solver.CreateSolver('GLOP')
if not solver:
return
# [END solver]
# [START variables]