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

Skip to content

Commit e8b6519

Browse files
authored
Merge pull request #13312 from anntzer/wqy-z
Further investigate flaky failure with wqy-zenhei.ttc on Travis.
2 parents 33eeb8b + 98d8139 commit e8b6519

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ def test_utf16m_sfnt():
115115
def test_find_ttc():
116116
fp = FontProperties(family=["WenQuanYi Zen Hei"])
117117
font = findfont(fp)
118-
assert Path(font).name == "wqy-zenhei.ttc"
118+
if Path(font).name != "wqy-zenhei.ttc":
119+
# This test appears to be flaky on Travis... investigate it.
120+
print("system fonts:")
121+
print(*findSystemFonts(), sep="\n")
122+
pytest.fail("Failed to find wqy-zenhei.ttc")
119123

120124
fig, ax = plt.subplots()
121125
ax.text(.5, .5, "\N{KANGXI RADICAL DRAGON}", fontproperties=fp)

0 commit comments

Comments
 (0)