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 df536f0 commit 5335c4eCopy full SHA for 5335c4e
1 file changed
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