]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783)
authorJack DeVries <58614260+jdevries3133@users.noreply.github.com>
Fri, 6 Aug 2021 12:50:56 +0000 (08:50 -0400)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 12:50:56 +0000 (14:50 +0200)
commit15d3c14df32a35ac69898a7852115722e30d7857
treebd8fb96915ef0dcf7959139dd9460829f417ffc0
parent4d77691172aae81bdcbb0ea75839d0e896c43781
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>
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]