Skip to content

Commit

Permalink
loosen time_limit in test_scipy_mi_time_limit_reached
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jun 18, 2024
1 parent 0617a0f commit f809197
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ package:
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 8231f006f6b55da141758282aecb788b3b5742448765dba6a9440b6336080ce3
patches:
# test that fails due to timing issues on slow CI agents when in emulation
- patches/0001-loosen-time-limit-in-test_scipy_mi_time_limit_reache.patch

build:
number: 0
Expand Down
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:

0 comments on commit f809197

Please sign in to comment.