Skip to content

Commit 9b69954

Browse files
committed
modified tests to keep important items
1 parent 1c6bdde commit 9b69954

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,12 @@ def test_fontcache_thread_safe():
273273
def test_fontentry_dataclass():
274274
fontent = FontEntry(name='font-name')
275275

276-
assert type(fontent.__doc__) == str
277-
278276
png = fontent._repr_png_()
279-
html = fontent._repr_html_()
280-
281277
img = Image.open(BytesIO(png))
282278
assert img.width > 0
283279
assert img.height > 0
284280

281+
html = fontent._repr_html_()
285282
assert html.startswith("<img src=\"data:image/png;base64")
286283

287284

0 commit comments

Comments
 (0)