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.
1 parent eb18cb2 commit f1308bcCopy full SHA for f1308bc
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