From dd123059d8268572ab3c8b9a1142c77abc6ab37c Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith [Google LLC]" Date: Sun, 25 Feb 2024 23:28:14 +0000 Subject: [PATCH 1/2] gh-71052: fix test_concurrent_futures wasi regression. --- Lib/test/test_concurrent_futures/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_concurrent_futures/__init__.py b/Lib/test/test_concurrent_futures/__init__.py index 17a2853173ba18..826b0e92ed4afc 100644 --- a/Lib/test/test_concurrent_futures/__init__.py +++ b/Lib/test/test_concurrent_futures/__init__.py @@ -1,7 +1,11 @@ import os.path import unittest from test import support -from test.support import import_helper +from test.support import threading_helper + + +# Adjust if we ever have a platform with processes but not threads. +threading_helper.requires_working_threading() if support.check_sanitizer(address=True, memory=True): From f65e1c4ff0446d3ac8b41eed28c62e886577d4e6 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith [Google LLC]" Date: Sun, 25 Feb 2024 23:37:26 +0000 Subject: [PATCH 2/2] make the API raise properly. --- Lib/test/test_concurrent_futures/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_concurrent_futures/__init__.py b/Lib/test/test_concurrent_futures/__init__.py index 826b0e92ed4afc..b38bd38d338f0e 100644 --- a/Lib/test/test_concurrent_futures/__init__.py +++ b/Lib/test/test_concurrent_futures/__init__.py @@ -5,7 +5,7 @@ # Adjust if we ever have a platform with processes but not threads. -threading_helper.requires_working_threading() +threading_helper.requires_working_threading(module=True) if support.check_sanitizer(address=True, memory=True):