8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388af15 commit 538fb76Copy full SHA for 538fb76
lib/matplotlib/tests/test_font_manager.py
@@ -198,4 +198,5 @@ def _model_handler(_):
198
def test_fork():
199
_model_handler(0) # Make sure the font cache is filled.
200
ctx = multiprocessing.get_context("fork")
201
- ctx.Pool(processes=2).map(_model_handler, range(2))
+ with ctx.Pool(processes=2) as pool:
202
+ pool.map(_model_handler, range(2))
0 commit comments