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

Commit

Permalink
Fix doctest to use existing file
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Nov 17, 2014
1 parent e83f839 commit 034fa58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/repl/display/formatter.py
Expand Up @@ -312,7 +312,8 @@ def __call__(self, obj):
....: def _graphics_(self, **kwds):
....: print('showing graphics')
....: from sage.structure.graphics_file import GraphicsFile
....: return GraphicsFile('/nonexistent.png', 'image/png')
....: from sage.misc.temporary_file import graphics_filename
....: return GraphicsFile(graphics_filename('.png'), 'image/png')
....: def _repr_(self):
....: return 'Textual representation'
sage: from sage.repl.display.formatter import SageNBTextFormatter
Expand Down

0 comments on commit 034fa58

Please sign in to comment.