|
40 | 40 | from test.support.script_helper import (
|
41 | 41 | assert_python_ok, assert_python_failure, run_python_until_end)
|
42 | 42 | from test.support import (
|
43 |
| - import_helper, is_apple, os_helper, skip_if_sanitizer, threading_helper, warnings_helper |
| 43 | + import_helper, is_apple, os_helper, skip_if_sanitizer, threading_helper, warnings_helper, |
| 44 | + skip_on_s390x |
44 | 45 | )
|
45 | 46 | from test.support.os_helper import FakePath
|
46 | 47 |
|
@@ -1700,6 +1701,9 @@ class CBufferedReaderTest(BufferedReaderTest, SizeofTest):
|
1700 | 1701 | @skip_if_sanitizer(memory=True, address=True, thread=True,
|
1701 | 1702 | reason="sanitizer defaults to crashing "
|
1702 | 1703 | "instead of returning NULL for malloc failure.")
|
| 1704 | + # gh-117755: The test allocates 9 223 372 036 854 775 807 bytes |
| 1705 | + # (0x7fffffffffffffff) and mimalloc fails with a division by zero on s390x. |
| 1706 | + @skip_on_s390x |
1703 | 1707 | def test_constructor(self):
|
1704 | 1708 | BufferedReaderTest.test_constructor(self)
|
1705 | 1709 | # The allocation can succeed on 32-bit builds, e.g. with more
|
@@ -2068,6 +2072,9 @@ class CBufferedWriterTest(BufferedWriterTest, SizeofTest):
|
2068 | 2072 | @skip_if_sanitizer(memory=True, address=True, thread=True,
|
2069 | 2073 | reason="sanitizer defaults to crashing "
|
2070 | 2074 | "instead of returning NULL for malloc failure.")
|
| 2075 | + # gh-117755: The test allocates 9 223 372 036 854 775 807 bytes |
| 2076 | + # (0x7fffffffffffffff) and mimalloc fails with a division by zero on s390x. |
| 2077 | + @skip_on_s390x |
2071 | 2078 | def test_constructor(self):
|
2072 | 2079 | BufferedWriterTest.test_constructor(self)
|
2073 | 2080 | # The allocation can succeed on 32-bit builds, e.g. with more
|
@@ -2590,6 +2597,9 @@ class CBufferedRandomTest(BufferedRandomTest, SizeofTest):
|
2590 | 2597 | @skip_if_sanitizer(memory=True, address=True, thread=True,
|
2591 | 2598 | reason="sanitizer defaults to crashing "
|
2592 | 2599 | "instead of returning NULL for malloc failure.")
|
| 2600 | + # gh-117755: The test allocates 9 223 372 036 854 775 807 bytes |
| 2601 | + # (0x7fffffffffffffff) and mimalloc fails with a division by zero on s390x. |
| 2602 | + @skip_on_s390x |
2593 | 2603 | def test_constructor(self):
|
2594 | 2604 | BufferedRandomTest.test_constructor(self)
|
2595 | 2605 | # The allocation can succeed on 32-bit builds, e.g. with more
|
|
0 commit comments