Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed May 9, 2021
1 parent 7c2d488 commit 0108a83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions diofant/tests/functions/test_exponential.py
@@ -1,9 +1,9 @@
import pytest

from diofant import (E, Float, I, LambertW, O, Product, Rational, Sum, Symbol,
arg, conjugate, cos, cosh, exp, exp_polar, expand_log,
log, nan, oo, pi, re, sign, simplify, sin, sinh, sqrt,
symbols, tanh, zoo)
from diofant import (Abs, E, Float, I, LambertW, O, Product, Rational, Sum,
Symbol, arg, conjugate, cos, cosh, exp, exp_polar,
expand_log, log, nan, oo, pi, re, sign, simplify, sin,
sinh, sqrt, symbols, tanh, zoo)
from diofant.abc import m, n, x, y, z
from diofant.core.function import ArgumentIndexError

Expand Down Expand Up @@ -487,3 +487,7 @@ def test_log_product():

expr = log(Product(-2, (n, 0, 4)))
assert simplify(expr) == expr


def test_sympyissue_21437():
pytest.raises(TypeError, lambda: log(Abs))
1 change: 1 addition & 0 deletions docs/release/notes-0.13.rst
Expand Up @@ -81,3 +81,4 @@ These Sympy issues also were addressed:
* :sympyissue:`21024`: sympy.polys.polyerrors.CoercionFailed integration regressions?
* :sympyissue:`21396`: Pow.as_base_exp inconsistent with I.as_base_exp
* :sympyissue:`21410`: Polynomial power raises KeyError
* :sympyissue:`21437`: log(Abs)

0 comments on commit 0108a83

Please sign in to comment.