-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loosen time_limit in test_scipy_mi_time_limit_reached
- Loading branch information
1 parent
0617a0f
commit f809197
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
recipe/patches/0001-loosen-time-limit-in-test_scipy_mi_time_limit_reache.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From 5868af2b7649031ad86c069839ef1d199c1079f2 Mon Sep 17 00:00:00 2001 | ||
From: "H. Vetinari" <[email protected]> | ||
Date: Wed, 19 Jun 2024 10:31:29 +1100 | ||
Subject: [PATCH] loosen time-limit in test_scipy_mi_time_limit_reached | ||
|
||
--- | ||
cvxpy/tests/test_conic_solvers.py | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/cvxpy/tests/test_conic_solvers.py b/cvxpy/tests/test_conic_solvers.py | ||
index ad2206eb3..083272a19 100644 | ||
--- a/cvxpy/tests/test_conic_solvers.py | ||
+++ b/cvxpy/tests/test_conic_solvers.py | ||
@@ -2229,7 +2229,7 @@ class TestSCIPY(unittest.TestCase): | ||
sth = sths.mi_lp_7() | ||
|
||
# We only check that the option does not raise an error. | ||
- sth.solve(solver='SCIPY', scipy_options={"time_limit": 0.1}) | ||
+ sth.solve(solver='SCIPY', scipy_options={"time_limit": 1}) | ||
|
||
@unittest.skipUnless('SCIPY' in INSTALLED_MI_SOLVERS, 'SCIPY version cannot solve MILPs') | ||
def test_scipy_mi_solver_stats(self) -> None: |