Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0fb3d4

Browse files
aitikguptatacaswell
authored andcommitted
Remove fallback test
1 parent 9cb35ac commit c0fb3d4

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

lib/matplotlib/tests/test_agg.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from matplotlib import (
1212
collections, path, pyplot as plt, transforms as mtransforms, rcParams,
13-
font_manager as fm
1413
)
1514
from matplotlib.backends.backend_agg import RendererAgg
1615
from matplotlib.figure import Figure
@@ -352,19 +351,3 @@ def test_chunksize_toobig_chunks(chunk_limit_setup):
352351
rcParams['agg.path.chunksize'] = 90_000
353352
with pytest.raises(OverflowError, match='Please reduce'):
354353
ra.draw_path(gc, p, idt)
355-
356-
357-
@image_comparison(["font_fallback.png"])
358-
def test_font_fallback():
359-
fp = fm.FontProperties(family=["Noto Sans CJK JP"])
360-
name = pathlib.Path(fm.findfont(fp)).name
361-
if name != "NotoSansCJK-Regular.ttc":
362-
pytest.skip(f"Noto Sans CJK JP font may be missing, found: {name}")
363-
364-
plt.rc('font', family=['DejaVu Sans', 'Noto Sans CJK JP'], size=15)
365-
366-
with warnings.catch_warnings():
367-
warnings.filterwarnings('ignore', 'findfont: Font family.*not found')
368-
fig, ax = plt.subplots()
369-
ax.text(0.25, 0.475, "There are 多个汉字 in between!")
370-
fig.canvas.draw()

0 commit comments

Comments
 (0)