aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-03-28 17:40:58 +0100
committerGitHub <noreply@github.com>2024-03-28 16:40:58 +0000
commit6702d2bf6edcd5b5415e17837383623b9d76a5b8 (patch)
treeac1b9ff72e6d5371404ecd2eb6f6ee2cb6585d48 /Lib/test/test_decimal.py
parentc1712ef066321c01bf09cba3f22fc474b5b8dfa7 (diff)
downloadcpython-6702d2bf6edcd5b5415e17837383623b9d76a5b8.tar.gz
cpython-6702d2bf6edcd5b5415e17837383623b9d76a5b8.zip
gh-114331: Skip decimal test_maxcontext_exact_arith on s390x (#117326)
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index f23ea8af0c8..05dcb25a7e5 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -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