You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add additional tests for isinf() function in cmath library #148868
In Lib/test/test_cmath.py , under the test_isinf() method , many test cases for isinf method are available but edge cases like -inf and inf/inf seems to be missing.
Activity
skirpichev commentedon Apr 22, 2026
inf/inf is nan - it's present.
Note also, that isinf has much more tests, it's used in rAssertAlmostEqual.
gh-148868: Increase test coverage for `cmath.isinf` (#148869)