Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Prevent doctest from leaking file into current working directory.
Browse files Browse the repository at this point in the history
Now that the special case for DOCTEST_MODE in Graphics.show is gone,
we have to be more careful about where we place our output files.
  • Loading branch information
gagern committed Jul 11, 2014
1 parent 9f30e94 commit bb7307f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/plot/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ def graphics_array(self, ncols=3):
sage: g = a.graphics_array(ncols=2); print g
Graphics Array of size 2 x 2
sage: g.show('sage.png') # optional
sage: f = sage.misc.temporary_file.tmp_filename(ext='.png')
sage: g.show(f) # optional
Frames can be specified as a generator too; it is internally converted to a list::
Expand Down

0 comments on commit bb7307f

Please sign in to comment.