##// END OF EJS Templates
Allow InputTransformers to raise SyntaxErrors...
Allow InputTransformers to raise SyntaxErrors This is a relatively trivial modification of the IPython main loop to catch a possible SyntaxError and print it instead of quitting. Doctesting this change is somewhat tricky since we actually need to run the main TerminalInteractiveShell.interact() loop, and is done through a subprocess and piping in a testcase.

File last commit:

r12357:150bcc8a
r13522:ccd47251
Show More
test_app.py
25 lines | 888 B | text/x-python | PythonLexer
"""Test QtConsoleApp"""
#-----------------------------------------------------------------------------
# Copyright (C) 2013 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
import nose.tools as nt
import IPython.testing.tools as tt
#-----------------------------------------------------------------------------
# Test functions
#-----------------------------------------------------------------------------
def test_help_output():
"""ipython qtconsole --help-all works"""
tt.help_all_output_test('qtconsole')