8000 Travis for Python 3.7 sometimes fails due to missing font · Issue #13137 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Travis for Python 3.7 sometimes fails due to missing font #13137
Closed
@timhoffm

Description

@timhoffm

Bug report

Bug summary

________________________________ test_find_ttc _________________________________
[gw1] linux -- Python 3.7.1 /home/travis/virtualenv/python3.7.1/bin/python
    @pytest.mark.xfail(not (os.environ.get("TRAVIS") and sys.platform == "linux"),
                       reason="Font may be missing.")
    def test_find_ttc():
        fp = FontProperties(family=["WenQuanYi Zen Hei"])
        font = findfont(fp)
>       assert Path(font).name == "wqy-zenhei.ttc"
E       AssertionError: assert 'DejaVuSans.ttf' == 'wqy-zenhei.ttc'
E         - DejaVuSans.ttf
E         + wqy-zenhei.ttc
lib/matplotlib/tests/test_font_manager.py:117: AssertionError

This happens sometimes with recent PRs

e.g. https://travis-ci.org/matplotlib/matplotlib/builds/477417451?utm_source=github_status&utm_medium=notification
or https://travis-ci.org/matplotlib/matplotlib/builds/476654935?utm_source=github_status&utm_medium=notification

However, there seem to be other PR at the same time that do not suffer from the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0