]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-114331: Skip decimal test_maxcontext_exact_arith on s390x (#117326)
authorVictor Stinner <vstinner@python.org>
Thu, 28 Mar 2024 16:40:58 +0000 (17:40 +0100)
committerGitHub <noreply@github.com>
Thu, 28 Mar 2024 16:40:58 +0000 (16:40 +0000)
Lib/test/test_decimal.py

index f23ea8af0c8772f0c6aad4b7dbf927ec1085b5b2..05dcb25a7e5950437396aaf326cb7be6fa5858f2 100644 (file)
@@ -38,7 +38,8 @@ from test.support import (is_resource_enabled,
                           check_disallow_instantiation)
 from test.support import (TestFailed,
                           run_with_locale, cpython_only,
-                          darwin_malloc_err_warning, is_emscripten)
+                          darwin_malloc_err_warning, is_emscripten,
+                          skip_on_s390x)
 from test.support.import_helper import import_fresh_module
 from test.support import threading_helper
 from test.support import warnings_helper
@@ -5650,6 +5651,9 @@ class CWhitebox(unittest.TestCase):
     @unittest.skipIf(check_sanitizer(address=True, memory=True),
                      "ASAN/MSAN sanitizer defaults to crashing "
                      "instead of returning NULL for malloc failure.")
+    # gh-114331: The test allocates 784 271 641 GiB and mimalloc does not fail
+    # to allocate it when using mimalloc on s390x.
+    @skip_on_s390x
     def test_maxcontext_exact_arith(self):
 
         # Make sure that exact operations do not raise MemoryError due