diff --git a/diofant/tests/functions/test_exponential.py b/diofant/tests/functions/test_exponential.py index 0ed019ba720..1ce694cd5de 100644 --- a/diofant/tests/functions/test_exponential.py +++ b/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 @@ -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)) diff --git a/docs/release/notes-0.13.rst b/docs/release/notes-0.13.rst index d6bf9655de3..324cf5ecd98 100644 --- a/docs/release/notes-0.13.rst +++ b/docs/release/notes-0.13.rst @@ -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)