From a5a95358f42845c4e22ed98f647016fe4d5b121f Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Tue, 17 Jan 2023 14:03:29 +0000 Subject: [PATCH] `mypy_test.py`: Try using a process pool instead of a thread pool --- tests/mypy_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mypy_test.py b/tests/mypy_test.py index 087f4136688f..767d203228d2 100644 --- a/tests/mypy_test.py +++ b/tests/mypy_test.py @@ -435,7 +435,7 @@ def setup_virtual_environments(distributions: dict[str, PackageDependencies], ar venv_start_time = time.perf_counter() - with concurrent.futures.ThreadPoolExecutor() as executor: + with concurrent.futures.ProcessPoolExecutor() as executor: venv_info_futures = [ executor.submit(setup_venv_for_external_requirements_set, requirements_set, tempdir) for requirements_set in external_requirements_to_distributions