]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH...
authorŁukasz Langa <lukasz@langa.pl>
Fri, 6 Aug 2021 13:35:11 +0000 (15:35 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 13:35:11 +0000 (15:35 +0200)
commit693a661478036dc2c5b48e138dd09320a972c25a
treec7b2be448e0af106bbc22f38bcd91bbc244cdc2f
parent7dad0337518a0d599caf8f803a5bf45db67cbe9b
[3.9] bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783) (GH-27629)

* 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]