From 07eaa5584597f8af362b9ba47adba97dace5f850 Mon Sep 17 00:00:00 2001 From: Kirill Smelkov Date: Tue, 11 Dec 2007 00:31:06 +0300 Subject: [PATCH] risch: clarify skip reason for original Berstein tests They are too slow. --- sympy/integrals/tests/test_risch.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sympy/integrals/tests/test_risch.py b/sympy/integrals/tests/test_risch.py index 09f924f..e5454d9 100644 --- a/sympy/integrals/tests/test_risch.py +++ b/sympy/integrals/tests/test_risch.py @@ -81,34 +81,38 @@ def test_resch_norman_issue442_1(): # NB: correctness assured as ratsimp(diff(g,x) - f) == 0 in maxima # SymPy is unable to do it :( -# They are skipped(), because they don't work yet. +# Besides, they are skipped(), because they take too much time to execute. +@XFAIL def test_pmint_rat(): - skip() + skip('takes too much time') f = (x**7-24*x**4-4*x**2+8*x-8) / (x**8+6*x**6+12*x**4+8*x**2) g = (4 + 8*x**2 + 6*x + 3*x**3) / (x*(x**4 + 4*x**2 + 4)) + log(x) assert risch_norman(f, x) == g +@XFAIL def test_pmint_trig(): - skip() + skip('takes too much time') f = (x-tan(x)) / tan(x)**2 + tan(x) g = (-x - tan(x)*x**2 / 2) / tan(x) + log(1+tan(x)**2) / 2 assert risch_norman(f, x) == g +@XFAIL def test_pmint_logexp(): - skip() + skip('takes too much time') f = (1+x+x*exp(x))*(x+log(x)+exp(x)-1)/(x+log(x)+exp(x))**2/x g = 1/(x+log(x)+exp(x)) + log(x + log(x) + exp(x)) assert risch_norman(f, x) == g +@XFAIL def test_pmint_erf(): - skip() + skip('takes too much time') f = exp(-x**2)*erf(x)/(erf(x)**3-erf(x)**2-erf(x)+1) g = sqrt(pi)/4 * (-1/(erf(x)-1) - log(erf(x)+1)/2 + log(erf(x)-1)/2) -- 2.11.4.GIT