Skip to content

Commit ed5eb67

Browse files
fixed the bug for the example having dsolve_too_slow flag
1 parent c345886 commit ed5eb67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sympy/solvers/ode/tests/test_single.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ def _test_particular_example(our_hint, ode_example, solver_flag=False):
210210
if not (dsolve_too_slow and ON_TRAVIS):
211211
dsolve_sol = dsolve(eq, func, simplify=simplify_flag,hint=our_hint)
212212
else:
213-
dsolve_sol = expected_sol
213+
if len(expected_sol)==1:
214+
dsolve_sol = expected_sol[0]
215+
else:
216+
dsolve_sol = expected_sol
214217

215218
except Exception as e:
216219
dsolve_sol = []

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy