8000 Backport PR #16126 on branch v3.1.x (TST: test_fork: Missing j… (#16131) · matplotlib/matplotlib@00633ae · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 00633ae

Browse files
Kojoleyanntzer
andauthored
Backport PR #16126 on branch v3.1.x (TST: test_fork: Missing j… (#16131)
Backport PR #16126 on branch v3.1.x (TST: test_fork: Missing join) Co-authored-by: Antony Lee <anntzer.lee@gmail.com>
2 parents 388af15 + 538fb76 commit 00633ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,5 @@ def _model_handler(_):
198198
def test_fork():
199199
_model_handler(0) # Make sure the font cache is filled.
200200
ctx = multiprocessing.get_context("fork")
201-
ctx.Pool(processes=2).map(_model_handler, range(2))
201+
with ctx.Pool(processes=2) as pool:
202+
pool.map(_model_handler, range(2))

0 commit comments

Comments
 (0)
0