##// END OF EJS Templates
Fix input transformer bug when pasting ipython promts....
Fix input transformer bug when pasting ipython promts. Fixes a SyntaxError that arose when pasting code containing the IPython continuation prompt without preceding spaces, eg.: In [1]: if True: ...: print "No spaces before the '...:' prompt." This issue was brought up in "http://stackoverflow.com/questions/26297356/how-can-i-paste-the-ipython-output-in-ipython#comment41270724_26297356" This commit adds a test for the bug, and fixes the regular expression that strips continuation prompts.

File last commit:

r12566:f71b1665
r19036:4f186a3a
Show More
test_imports.py
55 lines | 1.2 KiB | text/x-python | PythonLexer
# encoding: utf-8
def test_import_completer():
from IPython.core import completer
def test_import_crashhandler():
from IPython.core import crashhandler
def test_import_debugger():
from IPython.core import debugger
def test_import_excolors():
from IPython.core import excolors
def test_import_history():
from IPython.core import history
def test_import_hooks():
from IPython.core import hooks
def test_import_getipython():
from IPython.core import getipython
def test_import_interactiveshell():
from IPython.core import interactiveshell
def test_import_logger():
from IPython.core import logger
def test_import_macro():
from IPython.core import macro
def test_import_magic():
from IPython.core import magic
def test_import_oinspect():
from IPython.core import oinspect
def test_import_prefilter():
from IPython.core import prefilter
def test_import_prompts():
from IPython.core import prompts
def test_import_release():
from IPython.core import release
def test_import_shadowns():
from IPython.core import shadowns
def test_import_ultratb():
from IPython.core import ultratb
def test_import_usage():
from IPython.core import usage