We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c751d7a commit 5956576Copy full SHA for 5956576
Lib/test/test_io/test_bufferedio.py
@@ -624,6 +624,15 @@ def test_bad_readinto_type(self):
624
self.assertIsInstance(cm.exception.__cause__, TypeError)
625
626
def test_read1_error_does_not_cause_reentrant_failure(self):
627
+ # 32-bit builds (e.g. win32) can raise OverflowError
628
+ # converting huge Python int to Py_ssize_t.
629
+ if sys.maxsize <= 2**32:
630
+ self.skipTest("requires 64-bit build")
631
+ # Under TSan, the process may abort on huge allocation
632
+ # attempts (exit code 66).
633
+ if support.check_sanitizer(thread=True):
634
+ self.skipTest("TSan aborts on huge allocations")
635
+
636
self.addCleanup(os_helper.unlink, os_helper.TESTFN)
637
with self.open(os_helper.TESTFN, "wb") as f:
638
f.write(b"hello")
0 commit comments