From 5335c4e1a5f8c439cfab08ea4bd04b1a9158712c Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 7 Jan 2020 10:23:27 +0100 Subject: [PATCH] Backport PR #16126: TST: test_fork: Missing join --- lib/matplotlib/tests/test_font_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_font_manager.py b/lib/matplotlib/tests/test_font_manager.py index 1597a3aa9c42..f94fabd3764f 100644 --- a/lib/matplotlib/tests/test_font_manager.py +++ b/lib/matplotlib/tests/test_font_manager.py @@ -198,4 +198,5 @@ def _model_handler(_): def test_fork(): _model_handler(0) # Make sure the font cache is filled. ctx = multiprocessing.get_context("fork") - ctx.Pool(processes=2).map(_model_handler, range(2)) + with ctx.Pool(processes=2) as pool: + pool.map(_model_handler, range(2)) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy