diff options
author | Victor Stinner <vstinner@python.org> | 2024-04-15 08:24:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-15 08:24:47 (GMT) |
commit | a9107fe5c0869c01b4c8db7a34c768ee8511505a (patch) | |
tree | 1dfa2fcc6b42d9827147d1b7954978deaf4fc435 | |
parent | 7bcc257e97ee080d1128788a12a1731afde26b0a (diff) | |
download | cpython-a9107fe5c0869c01b4c8db7a34c768ee8511505a.zip cpython-a9107fe5c0869c01b4c8db7a34c768ee8511505a.tar.gz cpython-a9107fe5c0869c01b4c8db7a34c768ee8511505a.tar.bz2 |
gh-117755: Skip test_io.test_constructor() on s390x (#117801)
The test allocates 9 223 372 036 854 775 807 bytes
(0x7fffffffffffffff) and mimalloc fails with a division by zero on
s390x.
-rw-r--r-- | Lib/test/test_io.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 4ea1ef1..c3dc057 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -40,7 +40,8 @@ from test import support from test.support.script_helper import ( assert_python_ok, assert_python_failure, run_python_until_end) from test.support import ( - import_helper, is_apple, os_helper, skip_if_sanitizer, threading_helper, warnings_helper + import_helper, is_apple, os_helper, skip_if_sanitizer, threading_helper, warnings_helper, + skip_on_s390x ) from test.support.os_helper import FakePath @@ -1700,6 +1701,9 @@ class CBufferedReaderTest(BufferedReaderTest, SizeofTest): @skip_if_sanitizer(memory=True, address=True, thread=True, reason="sanitizer defaults to crashing " "instead of returning NULL for malloc failure.") + # gh-117755: The test allocates 9 223 372 036 854 775 807 bytes + # (0x7fffffffffffffff) and mimalloc fails with a division by zero on s390x. + @skip_on_s390x def test_constructor(self): BufferedReaderTest.test_constructor(self) # The allocation can succeed on 32-bit builds, e.g. with more @@ -2068,6 +2072,9 @@ class CBufferedWriterTest(BufferedWriterTest, SizeofTest): @skip_if_sanitizer(memory=True, address=True, thread=True, reason="sanitizer defaults to crashing " "instead of returning NULL for malloc failure.") + # gh-117755: The test allocates 9 223 372 036 854 775 807 bytes + # (0x7fffffffffffffff) and mimalloc fails with a division by zero on s390x. + @skip_on_s390x def test_constructor(self): BufferedWriterTest.test_constructor(self) # The allocation can succeed on 32-bit builds, e.g. with more @@ -2590,6 +2597,9 @@ class CBufferedRandomTest(BufferedRandomTest, SizeofTest): @skip_if_sanitizer(memory=True, address=True, thread=True, reason="sanitizer defaults to crashing " "instead of returning NULL for malloc failure.") + # gh-117755: The test allocates 9 223 372 036 854 775 807 bytes + # (0x7fffffffffffffff) and mimalloc fails with a division by zero on s390x. + @skip_on_s390x def test_constructor(self): BufferedRandomTest.test_constructor(self) # The allocation can succeed on 32-bit builds, e.g. with more |