]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117755: Remove tests on huge memory allocations (#117938)
authorVictor Stinner <vstinner@python.org>
Tue, 16 Apr 2024 20:05:12 +0000 (22:05 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Apr 2024 20:05:12 +0000 (22:05 +0200)
commite05d202ebf0904cf0a980fde76f4a38bb8dc7c3b
tree289ec9acffb87e50e5308ce44cc2c02f7d7a1c7f
parent241ed5f2cdd525de0e136d0e3ce70d5487721c10
gh-117755: Remove tests on huge memory allocations (#117938)

Remove unreliable tests on huge memory allocations:

* Remove test_maxcontext_exact_arith() of test_decimal.
  Stefan Krah, test author, agreed on removing the test:
  https://github.com/python/cpython/issues/114331#issuecomment-1925731273
* Remove test_constructor() tests of test_io.
  Sam Gross suggests remove them:
  https://github.com/python/cpython/pull/117809#pullrequestreview-2003889558

On Linux, depending how overcommit is configured, especially on Linux
s390x, a huge memory allocation (half or more of the full address
space) can succeed, but then the process will eat the full system
swap and make the system slower and slower until the whole system
becomes unusable.

Moreover, these tests had to be skipped when Python is built with
sanitizers.
Lib/test/test_decimal.py
Lib/test/test_io.py