|
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, |
44 |
| - skip_on_s390x |
| 43 | + import_helper, is_apple, os_helper, threading_helper, warnings_helper, |
45 | 44 | )
|
46 | 45 | from test.support.os_helper import FakePath
|
47 | 46 |
|
@@ -1698,22 +1697,6 @@ def test_seek_character_device_file(self):
|
1698 | 1697 | class CBufferedReaderTest(BufferedReaderTest, SizeofTest):
|
1699 | 1698 | tp = io.BufferedReader
|
1700 | 1699 |
|
1701 |
| - @skip_if_sanitizer(memory=True, address=True, thread=True, |
1702 |
| - reason="sanitizer defaults to crashing " |
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 |
1707 |
| - def test_constructor(self): |
1708 |
| - BufferedReaderTest.test_constructor(self) |
1709 |
| - # The allocation can succeed on 32-bit builds, e.g. with more |
1710 |
| - # than 2 GiB RAM and a 64-bit kernel. |
1711 |
| - if sys.maxsize > 0x7FFFFFFF: |
1712 |
| - rawio = self.MockRawIO() |
1713 |
| - bufio = self.tp(rawio) |
1714 |
| - self.assertRaises((OverflowError, MemoryError, ValueError), |
1715 |
| - bufio.__init__, rawio, sys.maxsize) |
1716 |
| - |
1717 | 1700 | def test_initialization(self):
|
1718 | 1701 | rawio = self.MockRawIO([b"abc"])
|
1719 | 1702 | bufio = self.tp(rawio)
|
@@ -2069,22 +2052,6 @@ def test_slow_close_from_thread(self):
|
2069 | 2052 | class CBufferedWriterTest(BufferedWriterTest, SizeofTest):
|
2070 | 2053 | tp = io.BufferedWriter
|
2071 | 2054 |
|
2072 |
| - @skip_if_sanitizer(memory=True, address=True, thread=True, |
2073 |
| - reason="sanitizer defaults to crashing " |
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 |
2078 |
| - def test_constructor(self): |
2079 |
| - BufferedWriterTest.test_constructor(self) |
2080 |
| - # The allocation can succeed on 32-bit builds, e.g. with more |
2081 |
| - # than 2 GiB RAM and a 64-bit kernel. |
2082 |
| - if sys.maxsize > 0x7FFFFFFF: |
2083 |
| - rawio = self.MockRawIO() |
2084 |
| - bufio = self.tp(rawio) |
2085 |
| - self.assertRaises((OverflowError, MemoryError, ValueError), |
2086 |
| - bufio.__init__, rawio, sys.maxsize) |
2087 |
| - |
2088 | 2055 | def test_initialization(self):
|
2089 | 2056 | rawio = self.MockRawIO()
|
2090 | 2057 | bufio = self.tp(rawio)
|
@@ -2594,22 +2561,6 @@ def test_interleaved_readline_write(self):
|
2594 | 2561 | class CBufferedRandomTest(BufferedRandomTest, SizeofTest):
|
2595 | 2562 | tp = io.BufferedRandom
|
2596 | 2563 |
|
2597 |
| - @skip_if_sanitizer(memory=True, address=True, thread=True, |
2598 |
| - reason="sanitizer defaults to crashing " |
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 |
2603 |
| - def test_constructor(self): |
2604 |
| - BufferedRandomTest.test_constructor(self) |
2605 |
| - # The allocation can succeed on 32-bit builds, e.g. with more |
2606 |
| - # than 2 GiB RAM and a 64-bit kernel. |
2607 |
| - if sys.maxsize > 0x7FFFFFFF: |
2608 |
| - rawio = self.MockRawIO() |
2609 |
| - bufio = self.tp(rawio) |
2610 |
| - self.assertRaises((OverflowError, MemoryError, ValueError), |
2611 |
| - bufio.__init__, rawio, sys.maxsize) |
2612 |
| - |
2613 | 2564 | def test_garbage_collection(self):
|
2614 | 2565 | CBufferedReaderTest.test_garbage_collection(self)
|
2615 | 2566 | CBufferedWriterTest.test_garbage_collection(self)
|
|
0 commit comments