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

Skip to content

Travis for Python 3.7 sometimes fails due to missing font #13137

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

Closed
timhoffm opened this issue Jan 9, 2019 · 1 comment
Closed

Travis for Python 3.7 sometimes fails due to missing font #13137

timhoffm opened this issue Jan 9, 2019 · 1 comment
Milestone

Comments

@timhoffm
Copy link
Member

timhoffm commented Jan 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants