From de64814e36aadf291110f1da4ad0cce4d59ef607 Mon Sep 17 00:00:00 2001 From: lazerg Date: Fri, 16 Oct 2026 07:13:27 +0500 Subject: [PATCH] gh-159497: Skip test_read1_error_does_not_cause_reentrant_failure under ASan --- Lib/test/test_io/test_bufferedio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_io/test_bufferedio.py b/Lib/test/test_io/test_bufferedio.py index e83dd0d4e28d006..a3b4f8fa076dcce 100644 --- a/Lib/test/test_io/test_bufferedio.py +++ b/Lib/test/test_io/test_bufferedio.py @@ -624,8 +624,8 @@ def test_bad_readinto_type(self): self.assertIsInstance(cm.exception.__cause__, TypeError) @unittest.skipUnless(sys.maxsize > 2**32, 'requires 64bit platform') - @unittest.skipIf(check_sanitizer(thread=True), - 'ThreadSanitizer aborts on huge allocations (exit code 66).') + @unittest.skipIf(check_sanitizer(address=True, thread=True), + 'Sanitizers abort on huge allocations.') def test_read1_error_does_not_cause_reentrant_failure(self): self.addCleanup(os_helper.unlink, os_helper.TESTFN) with self.open(os_helper.TESTFN, "wb") as f: