Skip to content

Commit

Permalink
mark some tests as slow, skip some XFAIL'ed tests on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed May 28, 2015
1 parent 6bf7b49 commit 76fd953
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions sympy/functions/special/tests/test_hyper.py
Expand Up @@ -206,6 +206,7 @@ def test_hyper_unpolarify():
assert hyper([0, 1], [0], a).argument == a


@slow
def test_hyperrep():
from sympy.functions.special.hyper import (HyperRep, HyperRep_atanh,
HyperRep_power1, HyperRep_power2, HyperRep_log1, HyperRep_asin1,
Expand Down
6 changes: 6 additions & 0 deletions sympy/integrals/tests/test_failing_integrals.py
Expand Up @@ -44,7 +44,10 @@ def test_issue_4212():


@XFAIL
@slow
def test_issue_4326():
if ON_TRAVIS:
skip("Too slow for travis.")
assert integrate(((h*(x - R + b))/b)*sqrt(R**2 - x**2), (x, R - b, R)).has(Integral)


Expand Down Expand Up @@ -112,7 +115,10 @@ def test_issue_4891():


@XFAIL
@slow
def test_issue_1796a():
if ON_TRAVIS:
skip("Too slow for travis.")
assert not integrate(exp(2*b*x)*exp(-a*x**2), x).has(Integral)


Expand Down
2 changes: 2 additions & 0 deletions sympy/integrals/tests/test_integrals.py
Expand Up @@ -351,6 +351,7 @@ def NS(e, n=15, **options):
return sstr(sympify(e).evalf(n, **options), full_prec=True)


@slow
def test_evalf_integrals():
assert NS(Integral(x, (x, 2, 5)), 15) == '10.5000000000000'
gauss = Integral(exp(-x**2), (x, -oo, oo))
Expand Down Expand Up @@ -843,6 +844,7 @@ def test_issue_4199():
Integral(exp(-I*2*pi*ypos*x)*x, (x, -oo, oo))


@slow
def test_issue_3940():
a, b, c, d = symbols('a:d', positive=True, finite=True)
assert integrate(exp(-x**2 + I*c*x), x) == \
Expand Down
1 change: 1 addition & 0 deletions sympy/integrals/tests/test_meijerint.py
Expand Up @@ -528,6 +528,7 @@ def E(expr):
(x, 0, oo)))) == polygamma(0, k)


@slow
def test_expint():
""" Test various exponential integrals. """
from sympy import (expint, unpolarify, Symbol, Ci, Si, Shi, Chi,
Expand Down
3 changes: 3 additions & 0 deletions sympy/integrals/tests/test_transforms.py
Expand Up @@ -161,6 +161,7 @@ def test_mellin_transform():
(-gamma(s + S(1)/2)/(sqrt(pi)*s), (-S(1)/2, 0), True)


@slow
def test_mellin_transform_bessel():
from sympy import Max
MT = mellin_transform
Expand Down Expand Up @@ -303,6 +304,7 @@ def test_expint():
(expint(2, x)*Heaviside(x)).rewrite(Ei).rewrite(expint).expand()


@slow
def test_inverse_mellin_transform():
from sympy import (sin, simplify, Max, Min, expand,
powsimp, exp_polar, cos, cot)
Expand Down Expand Up @@ -438,6 +440,7 @@ def mysimp(expr):
assert IMT(pi/cos(pi*s), s, x, (0, S(1)/2)) == sqrt(x)/(x + 1)


@slow
def test_laplace_transform():
from sympy import fresnels, fresnelc
LT = laplace_transform
Expand Down
3 changes: 3 additions & 0 deletions sympy/solvers/tests/test_ode.py
Expand Up @@ -876,6 +876,7 @@ def test_old_ode_tests():
assert checkodesol(eq11, sol11, order=1, solve_for_func=False)[0]


@slow
def test_1st_linear():
# Type: first order linear form f'(x)+p(x)f(x)=q(x)
eq = Eq(f(x).diff(x) + x*f(x), x**2)
Expand Down Expand Up @@ -1432,6 +1433,8 @@ def test_nth_linear_constant_coeff_homogeneous_RootOf():
@slow
@XFAIL
def test_nth_linear_constant_coeff_homogeneous_RootOf_sol():
if ON_TRAVIS:
skip("Too slow for travis.")
eq = f(x).diff(x, 5) + 11*f(x).diff(x) - 2*f(x)
sol = Eq(f(x),
C1*exp(x*RootOf(x**5 + 11*x - 2, 0)) +
Expand Down
1 change: 1 addition & 0 deletions sympy/solvers/tests/test_solveset.py
Expand Up @@ -290,6 +290,7 @@ def test_solveset_sqrt_1():
assert solveset_real(sqrt(x - 1), x) == FiniteSet(1)


@slow
def test_solveset_sqrt_2():
# http://tutorial.math.lamar.edu/Classes/Alg/SolveRadicalEqns.aspx#Solve_Rad_Ex2_a
assert solveset_real(sqrt(2*x - 1) - sqrt(x - 4) - 2, x) == \
Expand Down
6 changes: 6 additions & 0 deletions sympy/tests/test_wester.py
Expand Up @@ -2300,6 +2300,8 @@ def test_V12():
@slow
@XFAIL
def test_V13():
if ON_TRAVIS:
skip("Too slow for travis.")
r1 = integrate(1/(6 + 3*cos(x) + 4*sin(x)), x)
# expression not simplified, returns: -sqrt(11)*I*log(tan(x/2) + 4/3
# - sqrt(11)*I/3)/11 + sqrt(11)*I*log(tan(x/2) + 4/3 + sqrt(11)*I/3)/11
Expand Down Expand Up @@ -2337,6 +2339,8 @@ def test_V16():
@slow
@XFAIL
def test_V17():
if ON_TRAVIS:
skip("Too slow for travis.")
r1 = integrate((diff(f(x), x)*g(x)
- f(x)*diff(g(x), x))/(f(x)**2 - g(x)**2), x)
# integral not calculated
Expand Down Expand Up @@ -2834,6 +2838,8 @@ def test_Y2():
@slow
@XFAIL
def test_Y3():
if ON_TRAVIS:
skip("Too slow.")
t = symbols('t', extended_real=True, positive=True)
w = symbols('w', extended_real=True)
s = symbols('s')
Expand Down

0 comments on commit 76fd953

Please sign in to comment.