Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 98d8139

Browse filesBrowse files
committed
Further investigate flaky failure with wqy-zenhei.ttc on Travis.
1 parent 114d516 commit 98d8139
Copy full SHA for 98d8139

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎lib/matplotlib/tests/test_font_manager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_font_manager.py
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.