[PATCH] Fixes the -Qnew bug in guess_solve_strategy tests (#1260)

0 views
Skip to first unread message

Ondrej Certik

unread,
Jan 11, 2009, 12:18:08 PM1/11/09
to sympy-...@googlegroups.com, Ondrej Certik
Signed-off-by: Ondrej Certik <ond...@certik.cz>
---
sympy/solvers/tests/test_solvers.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sympy/solvers/tests/test_solvers.py b/sympy/solvers/tests/test_solvers.py
index 8a8968e..7873e56 100644
--- a/sympy/solvers/tests/test_solvers.py
+++ b/sympy/solvers/tests/test_solvers.py
@@ -24,7 +24,7 @@ def test_guess_strategy():
assert guess_solve_strategy( x**2 - 1, x ) == GS_POLY
assert guess_solve_strategy( x*y + y, x ) == GS_POLY
assert guess_solve_strategy( x*exp(y) + y, x) == GS_POLY
- assert guess_solve_strategy( (x - y**3)/(y**2*(1 - y**2)**(1/2)), x) == GS_POLY
+ assert guess_solve_strategy( (x - y**3)/(y**2*(1 - y**2)**(S(1)/2)), x) == GS_POLY

# polynomial equations via a change of variable
assert guess_solve_strategy( x**Rational(1,2) + 1, x ) == GS_POLY_CV_1
@@ -36,7 +36,7 @@ def test_guess_strategy():

# rational functions
assert guess_solve_strategy( (x+1)/(x**2 + 2), x) == GS_RATIONAL
- assert guess_solve_strategy( (x - y**3)/(y**2*(1 - y**2)**(1/2)), y) == GS_RATIONAL
+ assert guess_solve_strategy( (x - y**3)/(y**2*(1 - y**2)**(S(1)/2)), y) == GS_RATIONAL_CV_1

# rational functions via the change of variable y -> x**n
assert guess_solve_strategy( (x**Rational(1,2) + 1)/(x**Rational(1,3) + x**Rational(1,2) + 1), x ) \
--
1.6.0.4.1060.g9433b

Fabian Seoane

unread,
Jan 11, 2009, 1:20:38 PM1/11/09
to sympy-...@googlegroups.com
+1
--
Fabian, http://fseoane.net/blog/

Ondrej Certik

unread,
Jan 11, 2009, 1:25:12 PM1/11/09
to sympy-...@googlegroups.com
Thanks, it's in.
Reply all
Reply to author
Forward
0 new messages