Skip to content

Commit

Permalink
Make it so that doctesting sage/server/support.py doesn't create a te…
Browse files Browse the repository at this point in the history
…mp file in the sage tree.
  • Loading branch information
craigcitro committed Jun 10, 2009
1 parent 021d156 commit 1a9fb8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/server/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ def help(obj):
TESTS::
sage: import numpy.linalg
sage: import os, sage.misc.misc ; current_dir = os.getcwd()
sage: os.chdir(sage.misc.misc.tmp_dir('server_doctest'))
sage: sage.server.support.help(numpy.linalg.norm)
<html><table notracebacks bgcolor="#386074" cellpadding=10 cellspacing=10><tr><td bgcolor="#f5f5f5"><font color="#37546d">
&nbsp;&nbsp;&nbsp;<a target='_new' href='cell://docs-....html'>Click to open help window</a>&nbsp;&nbsp;&nbsp;
<br></font></tr></td></table></html>
sage: os.chdir(current_dir)
"""
from pydoc import resolve, html, describe
import sage.server.notebook.interact as interact
Expand Down

0 comments on commit 1a9fb8c

Please sign in to comment.