Skip to content

Commit

Permalink
Use less nseries() calls in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Apr 23, 2022
1 parent 96d2724 commit 7f90777
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions diofant/tests/functions/test_zeta_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ def test_zeta_eval():


def test__zetas():
assert _zetas(1/x).nseries(x, n=0) == O(1, x)
assert _zetas(1/x).nseries(x) == (1 + x**log(7) + x**log(6) + x**log(5) +
x**log(4) + x**log(3) + x**log(2) +
O(x**log(6)))
pytest.raises(PoleError, lambda: _zetas(-1/x).nseries(x, n=2))
assert _zetas(1/x).series(x, n=0) == O(1, x)
assert _zetas(1/x).series(x, n=2) == (1 + x**log(7) + x**log(6) +
x**log(5) + x**log(4) + x**log(3) +
x**log(2) + O(x**2))
pytest.raises(PoleError, lambda: _zetas(-1/x).series(x, n=2))


def test_zeta_series():
Expand Down

0 comments on commit 7f90777

Please sign in to comment.