Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Lib/test/support/__init__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -56,6 +56,7 @@
"run_with_tz", "PGO", "missing_compiler_executable",
"ALWAYS_EQ", "NEVER_EQ", "LARGEST", "SMALLEST",
"LOOPBACK_TIMEOUT", "INTERNET_TIMEOUT", "SHORT_TIMEOUT", "LONG_TIMEOUT",
"skip_on_s390x",
]


Expand DownExpand Up@@ -2238,3 +2239,7 @@ def copy_python_src_ignore(path, names):
'build',
}
returnignored

#Windows doesn't have os.uname() but it doesn't support s390x.
skip_on_s390x=unittest.skipIf(hasattr(os, 'uname') andos.uname().machine=='s390x',
'skipped on s390x')
6 changes: 5 additions & 1 deletion Lib/test/test_decimal.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -37,7 +37,8 @@
requires_legacy_unicode_capi, check_sanitizer)
fromtest.supportimport (TestFailed,
run_with_locale, cpython_only,
darwin_malloc_err_warning, is_emscripten)
darwin_malloc_err_warning, is_emscripten,
skip_on_s390x)
fromtest.support.import_helperimportimport_fresh_module
fromtest.supportimportthreading_helper
fromtest.supportimportwarnings_helper
Expand DownExpand Up@@ -5654,6 +5655,9 @@ def __abs__(self):
@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
deftest_maxcontext_exact_arith(self):

# Make sure that exact operations do not raise MemoryError due
Expand Down