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
Don't fail matplotlib related doctests if DISPLAY is unset #22441
Comments
Commit: |
This comment has been minimized.
This comment has been minimized.
Author: Ximin Luo |
New commits:
|
comment:4
I found weird that this modification has to be done only in two places... there are plots everywhere in the doctests! Why is that? Wouldn't it be better to set it automatically by the doctest engine? |
comment:5
Debian is on matplotlib v2 and Sage is still using v1.5 (see our status page). I did initially also add it into other places, but only these two were needed in the end to fix the test failures. Perhaps it runs the other plots after running these tests, so the "good" settings have already been set by then? Agreed that this is best done in the main code itself; probably not even in the doctest engine, but the Sage-matplotlib interface. I'm not certain where would be the best place though, I'm not familiar with the code. |
comment:6
It might be cleaner to patch matplotlib itself, I've filed a ticket on their side too. |
comment:7
I cannot reproduce this problem. I'm sure that many bots run Sage with |
comment:8
Looks like upstream rejected my suggestion. I can't reproduce this now on my main computer either, but I'll try it again in Debian's build-in-a-chroot program later.
They did point me to the |
comment:9
Any further news? Can this be reproduced in vanilla Sage? |
comment:10
see #23696 for matplotlib update |
comment:11
It appears that #23696 fixed this:
So, can this be closed now? |
comment:12
Yes, I didn't know there was a matching ticket to the debian patch. But this was definitely part of my target in #23696. |
Reviewer: François Bissey |
comment:13
closing positively reviewed duplicates |
Debian (and I'm sure other distros)'s autobuilders run with unset DISPLAY, and the tests fail without this patch.
Component: interfaces
Author: Ximin Luo
Branch/Commit: u/infinity0/don_t_fail_plot_py_doctest_if_display_is_unset @
a017372
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/22441
The text was updated successfully, but these errors were encountered: