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

Commit

Permalink
add doctests for #15972
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Mar 20, 2014
1 parent 7889b1a commit 53a7d7f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/sage/misc/interpreter.py
Expand Up @@ -613,6 +613,19 @@ def __init__(self, **kwargs):


def load_config_file(self, *args, **kwds):
"""
TESTS:
Test that :trac:`15972` has been fixed::
sage: from sage.misc.temporary_file import tmp_dir
sage: from sage.misc.interpreter import SageTerminalApp
sage: d = tmp_dir()
sage: IPYTHONDIR = os.environ['IPYTHONDIR']
sage: os.environ['IPYTHONDIR'] = d
sage: SageTerminalApp().load_config_file()
sage: os.environ['IPYTHONDIR'] = IPYTHONDIR
"""
from IPython.config.loader import PyFileConfigLoader, ConfigFileNotFound
from IPython.core.profiledir import ProfileDir, ProfileDirError
from IPython.utils.path import get_ipython_dir
Expand Down

0 comments on commit 53a7d7f

Please sign in to comment.