-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Fix some optional/not tested tags #18637
Comments
Branch: u/jdemeyer/ticket/18637 |
Commit: |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:4
A few tests marked diff --git a/src/sage/misc/latex.py b/src/sage/misc/latex.py
index ef76d09..6b47e20 100644
--- a/src/sage/misc/latex.py
+++ b/src/sage/misc/latex.py
@@ -1084,7 +1084,7 @@ class Latex(LatexCall):
An error
...
No pages of output.
- <BLANKLINE>
+ ...
"""
MACROS = latex_extra_preamble()
diff --git a/src/sage/plot/animate.py b/src/sage/plot/animate.py
index 83cb499..005dcde 100644
--- a/src/sage/plot/animate.py
+++ b/src/sage/plot/animate.py
@@ -118,7 +118,7 @@ import struct
import zlib
from sage.structure.sage_object import SageObject
-from sage.misc.temporary_file import tmp_dir, tmp_filename, graphics_filename
+from sage.misc.temporary_file import tmp_dir, tmp_filename
import plot
import sage.misc.misc
import sage.misc.viewer
@@ -601,7 +601,7 @@ www.ffmpeg.org, or use 'convert' to produce gifs instead."""
raise OSError(msg)
else:
if not savefile:
- savefile = graphics_filename(ext='.gif')
+ savefile = tmp_filename(ext='.gif')
if not savefile.endswith('.gif'):
savefile += '.gif'
savefile = os.path.abspath(savefile)
@@ -812,7 +812,7 @@ please install it and try again."""
else:
if output_format[0] != '.':
output_format = '.'+output_format
- savefile = graphics_filename(ext=output_format)
+ savefile = tmp_filename(ext=output_format)
else:
if output_format is None:
suffix = os.path.splitext(savefile)[1]
@@ -917,7 +917,7 @@ please install it and try again."""
"""
pngdir = self.png()
if savefile is None:
- savefile = graphics_filename('.png')
+ savefile = tmp_filename('.png')
with open(savefile, "wb") as out:
apng = APngAssembler(
out, len(self), |
comment:5
Sorry, I missed this change: diff --git a/src/sage/plot/animate.py b/src/sage/plot/animate.py
index 83cb499..a6bf569 100644
--- a/src/sage/plot/animate.py
+++ b/src/sage/plot/animate.py
@@ -43,8 +43,6 @@ Animate using FFmpeg_ instead of ImageMagick::
Animate as an APNG_::
sage: a.apng() # long time
- doctest:...: DeprecationWarning: use tmp_filename instead
- See http://trac.sagemath.org/17234 for details.
An animated :class:`sage.plot.graphics.GraphicsArray` of rotating ellipses::
|
comment:6
I prefer to move the changes |
comment:7
Here are some other tests which could be fixed (they include extra commas):
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
Replying to @jdemeyer:
I agree, especially since on further investigation, my changes don't work. Doctests pass, but the commands no longer behave correctly in the notebook. Can we make the change to |
comment:10
Replying to @jhpalmieri:
I don't have imagemagick installed and I don't want to install it for just this ticket. What's your output of |
comment:11
Replying to @jdemeyer:
There one long failed doctest, which I will abbreviate:
So the issue is the extra lines starting "PDF statistics", plus two |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Does this work? |
comment:14
Yes, thank you. Everything else looks good, and I've checked some of them by installing the appropriate optional packages. Most of the changes are obviously the right things to do, so if they break some optional doctests, the tests were broken before. I don't have magma, maple, or mathematica installed, among others, so I have not tested everything, and any resulting broken optional doctests should probably be dealt with elsewhere. |
Reviewer: John Palmieri |
Changed branch from u/jdemeyer/ticket/18637 to |
Fix all
# optional
tags without a package name (except forgiac
which is a different ticket) and replace some# not tested
tags by# known bug
.Component: doctest coverage
Author: Jeroen Demeyer
Branch/Commit:
8036f11
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/18637
The text was updated successfully, but these errors were encountered: