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

Skip to content

Further investigate flaky failure with wqy-zenhei.ttc on Travis. #13312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/matplotlib/tests/test_font_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ def test_utf16m_sfnt():
def test_find_ttc():
fp = FontProperties(family=["WenQuanYi Zen Hei"])
font = findfont(fp)
assert Path(font).name == "wqy-zenhei.ttc"
if Path(font).name != "wqy-zenhei.ttc":
# This test appears to be flaky on Travis... investigate it.
print("system fonts:")
print(*findSystemFonts(), sep="\n")
pytest.fail("Failed to find wqy-zenhei.ttc")

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