8000 Use svg instead of png for font manager memory leak test · matplotlib/matplotlib@8041516 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8041516

Browse files
committed
Use svg instead of png for font manager memory leak test
Some versions of Pillow (notably v9.2.0 is what I had installed) trigger a failure on this test that looks the same as if it was a failure on our own part. v9.4.0 of Pillow does not have the same behavior, hence CI does not catch it. This changes to svg to avoid the external dependency triggering the failure. The fontmanager lookup that we are explicitly trying to test here does still trigger for svg output, but the pillow generated one does not
1 parent 31e5682 commit 8041516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def inner():
340340
with BytesIO() as out:
341341
with warnings.catch_warnings():
342342
warnings.filterwarnings('ignore')
343-
fig.savefig(out, format='png')
343+
fig.savefig(out, format='svg')
344344

345345
inner()
346346

0 commit comments

Comments
 (0)
0