-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Stop Sage tests from saving things to hard drive #6864
Comments
Attachment: sage.png |
Attachment: sage0.png |
comment:1
Attachment: zz.png |
This comment has been minimized.
This comment has been minimized.
comment:2
This ticket is a good idea. Here are some things I've found: The file 'zz.png' is from sage.misc.latex, the function
In the class
This gets overwritten by the "as simple as it gets" example, though.
In sage.structure.sage_object, we get sage.png and test.sobj, both in the function "0.png" seems to come from sage.databases.database, in the function I'll try to track down the others later. |
comment:3
Another one is in calculus/calculus.py, line 1200
in a long differential equations example. This is the one labeled sage0.png above. I think that leaves only sage2.png to be found. This is a single point, and it's not clear if it comes from plotting or elsewhere. Notwithstanding that some optional doctests also save... |
comment:4
Replying to @kcrisman:
It's from |
comment:5
Here's a patch. I couldn't figure out how to fix the one in database.py, so it is now "not tested". |
comment:6
Attachment: trac_6864-SAGETMP.patch.gz Great! Thanks. This passes all relevant doctests and nothing appears in my home directory. I think not testing that example will be okay. |
Author: John Palmieri |
comment:7
Merged |
Reviewer: Karl-Dieter Crisman |
Merged: Sage 4.1.2.alpha2 |
comment:8
See #7059 for a followup. |
As far as I can tell, there are several objects that are saved when you run sage -t. One example is
in sage/plot/plot.py. However, there are others, which are unfortunately not anywhere near as easy to find, since they don't have a goofy caption.
The point is these should not be cluttering up one's home directory. This one seems to do it right:
which is in the sage/plot/text.py, I think. It does not show up in my home directory.
I'm not sure what else there is for sure, but I get at the very least the graphics which are attached. If you recognize them, post it here. Note also that there is a test.sobj and tmp.sws that get saved.
Component: doctest coverage
Author: John Palmieri
Reviewer: Karl-Dieter Crisman
Merged: Sage 4.1.2.alpha2
Issue created by migration from https:https://user-images.githubusercontent.com/1775728/216875338-9f33d8b5-c454-49d6-9dde-fbb3c64e3ee5.png625d.pngmath.org/ticket/6864
The text was updated successfully, but these errors were encountered: