From f1308bcdd824f64eeb51eedee74bfb8e83608a71 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Mon, 6 Jan 2020 21:44:40 +0300 Subject: [PATCH] TST: test_fork: Missing join Probably this is a cause of `test_fork` taking forever to complete sometimes. --- 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 43b67e144482..ad7f5b349246 100644 --- a/lib/matplotlib/tests/test_font_manager.py +++ b/lib/matplotlib/tests/test_font_manager.py @@ -197,4 +197,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