Skip to content
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

One-off doctest failures with matplotlib again #25375

Closed
jhpalmieri opened this issue May 16, 2018 · 4 comments
Closed

One-off doctest failures with matplotlib again #25375

jhpalmieri opened this issue May 16, 2018 · 4 comments

Comments

@jhpalmieri
Copy link
Member

With Sage 8.3.beta1, I have seen the same failures as reported in #20222:

sage -t --long --warn-long 224.1 src/sage/plot/hyperbolic_regular_polygon.py  # 1 doctest failed
sage -t --long --warn-long 224.1 src/sage/repl/rich_output/backend_sagenb.py  # 1 doctest failed
sage -t --long --warn-long 224.1 src/sage/combinat/crystals/crystals.py  # 1 doctest failed
sage -t --long --warn-long 224.1 src/sage/game_theory/matching_game.py  # 1 doctest failed

where a typical example is

File "src/sage/plot/hyperbolic_regular_polygon.py", line 244, in sage.plot.hyperbolic_regular_polygon.hyperbolic_regular_polygon
Failed example:
    g.plot()
Expected:
    Graphics object consisting of 1 graphics primitive
Got:
    doctest:warning
      File "/Users/jpalmier/Desktop/Sage_stuff/sage_builds/VANILLA/sage-8.3.beta1/local/lib/python2.7/threading.py", line 774, in __bootstrap
        self.__bootstrap_inner()
      File "/Users/jpalmier/Desktop/Sage_stuff/sage_builds/VANILLA/sage-8.3.beta1/local/lib/python2.7/threading.py", line 801, in __bootstrap_inner
        self.run()
      File "/Users/jpalmier/Desktop/Sage_stuff/sage_builds/VANILLA/sage-8.3.beta1/local/lib/python2.7/threading.py", line 1073, in run
        self.function(*self.args, **self.kwargs)
      File "/Users/jpalmier/Desktop/Sage_stuff/sage_builds/VANILLA/sage-8.3.beta1/local/lib/python2.7/site-packages/matplotlib/font_manager.py", line 279, in <lambda>
        'Matplotlib is building the font cache using fc-list. '
    :
    UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
    Graphics object consisting of 1 graphics primitive

Component: doctest framework

Issue created by migration from https://trac.sagemath.org/ticket/25375

@jhpalmieri
Copy link
Member Author

comment:1

Naturally I can't figure out how to reproduce this. The only time it happened, I built from a fresh 8.3.beta1 tarball on a machine on which I have built and run Sage many times. The file .sage/matplotlib-1.5.1/fontList.json has a recent modification time. I tried rebuilding from scratch and I tried deleting the directory ./sage/matplotlib-1.5.1/, but I can not reproduce the error.

@videlec
Copy link
Contributor

videlec commented Aug 3, 2018

comment:2

update milestone 8.3 -> 8.4

@videlec videlec modified the milestones: sage-8.3, sage-8.4 Aug 3, 2018
@jdemeyer
Copy link

jdemeyer commented Aug 7, 2018

comment:3

Not sure what went wrong. I haven't seen this error since then, so I rather close this as "cosmic ray" or whatever.

@jhpalmieri
Copy link
Member Author

comment:4

Sure, let's close it, since I can't reproduce it, either.

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