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 1c6bdde commit 9b69954Copy full SHA for 9b69954
1 file changed
lib/matplotlib/tests/test_font_manager.py
@@ -273,15 +273,12 @@ def test_fontcache_thread_safe():
273
def test_fontentry_dataclass():
274
fontent = FontEntry(name='font-name')
275
276
- assert type(fontent.__doc__) == str
277
-
278
png = fontent._repr_png_()
279
- html = fontent._repr_html_()
280
281
img = Image.open(BytesIO(png))
282
assert img.width > 0
283
assert img.height > 0
284
+ html = fontent._repr_html_()
285
assert html.startswith("<img src=\"data:image/png;base64")
286
287
0 commit comments