]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-102837: improve test coverage for math module (#102523)
authorSergey B Kirpichev <skirpichev@gmail.com>
Sun, 3 Sep 2023 08:48:47 +0000 (11:48 +0300)
committerGitHub <noreply@github.com>
Sun, 3 Sep 2023 08:48:47 +0000 (01:48 -0700)
commit9c995abd780f3740dcd23ad85b78f2df5b4cdbaf
tree05e1e858531a668e60d38fba2888834874aeb141
parentf373c6b9483e12d7f6e03a631601149ed60ab883
gh-102837: improve test coverage for math module (#102523)

- input checks for math_1(L989), math_1a(L1023), math_2(L1064,L1071), hypot(L2682), log(L2307), ldexp(L2168), ceil(L1165), floor(L1236,L1239) and dist(L2587,L2588,L2628).
- drop inaccessible "if" branch (L3518) in perm_comb_small()
- improve fsum coverage for exceptional cases (L1433,L1438,L1451,L1497), ditto fmod(L2378)
- rewrite modf to fix inaccessible case(L2229), ditto for pow(L2988)

(all line numbers are wrt the main branch at 5e6661bce9)
Lib/test/test_math.py
Modules/mathmodule.c