Thanks to visit codestin.com Credit goes to github.com
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.
2 parents c185494 + f1308bc commit 68d5e2fCopy full SHA for 68d5e2f
1 file changed
lib/matplotlib/tests/test_font_manager.py
@@ -197,4 +197,5 @@ def _model_handler(_):
197
def test_fork():
198
_model_handler(0) # Make sure the font cache is filled.
199
ctx = multiprocessing.get_context("fork")
200
- ctx.Pool(processes=2).map(_model_handler, range(2))
+ with ctx.Pool(processes=2) as pool:
201
+ pool.map(_model_handler, range(2))
0 commit comments