From e48370ab69862af6d61aea80333d525d08cdbfe8 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Tue, 6 Oct 2026 21:22:06 +0200 Subject: [PATCH 1/2] Skip ASan tests on NoGIL builds --- Lib/test/test_capi/test_mem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_capi/test_mem.py b/Lib/test/test_capi/test_mem.py index 63e71501162452..96e44e8753cef3 100644 --- a/Lib/test/test_capi/test_mem.py +++ b/Lib/test/test_capi/test_mem.py @@ -183,6 +183,7 @@ class PyMemDefaultTests(PyMemDebugTests): @requires_subprocess() +@support.requires_gil_enabled() @unittest.skipUnless(support.check_sanitizer(address=True), 'need address sanitizer') class AddressSanitizerTests(unittest.TestCase): From 6d486d97ad20775e7da0c68b15cde6de07fa5d3e Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 7 Oct 2026 12:11:08 +0200 Subject: [PATCH 2/2] Update test_mem.py Co-authored-by: Petr Viktorin --- Lib/test/test_capi/test_mem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_capi/test_mem.py b/Lib/test/test_capi/test_mem.py index 96e44e8753cef3..21b51d133447da 100644 --- a/Lib/test/test_capi/test_mem.py +++ b/Lib/test/test_capi/test_mem.py @@ -183,7 +183,7 @@ class PyMemDefaultTests(PyMemDebugTests): @requires_subprocess() -@support.requires_gil_enabled() +@support.requires_gil_enabled("PYTHONMALLOC='malloc' needs GIL build") @unittest.skipUnless(support.check_sanitizer(address=True), 'need address sanitizer') class AddressSanitizerTests(unittest.TestCase):