]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Aug 2021 17:09:06 +0000 (10:09 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 17:09:06 +0000 (10:09 -0700)
commita5d99632766b458b42f327e8bd0f82b0345c9a63
tree1561e7a0ce97fbc1fd4c8b321539b248b8db64e7
parent36a2497093f0c66c2fb1667308691561c1bbe3f4
bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783)

* When trying to allocate very large regions on macOS, malloc does not   fail silently. It sends a noisy error out to STDERR
* This provides a helper function to warn the user, and provides the warning for test_decimal, which consistently generates these warnings on macOS.

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
(cherry picked from commit 15d3c14df32a35ac69898a7852115722e30d7857)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
Lib/test/support/__init__.py
Lib/test/test_decimal.py
Misc/NEWS.d/next/Tests/2021-08-06-00-07-15.bpo-40928.aIwb6G.rst [new file with mode: 0644]