##// END OF EJS Templates
inputhook: disable CTRL+C when a hook is active....
inputhook: disable CTRL+C when a hook is active. On systems with 'readline', it's very likely to intercept a signal during a select() call. The default SIGINT handler will schedule a KeyboardInterrupt exception to be raised as soon as possible. If ctypes is used to install a Python callback for PyOS_InputHook, this will happen as soon as the bytecode execution starts, so even if the first instruction of the callback is a `try: ... except KeyboardInterrupt` clause, it's actually too late. As ctypes doesn't allow a Python callback to raise an exception, this ends up with IPython detecting an internal error... not pretty. We must therefore ignore the SIGINT signals until we are sure the exception handler is active, in the Python callback.

File last commit:

r2498:3eae1372
r4944:0fc80df3
Show More
test_imports.py
26 lines | 581 B | text/x-python | PythonLexer
Brian Granger
background_jobs.py => lib/backgroundjob.py and imports updated.
r2011 # encoding: utf-8
def test_import_coloransi():
from IPython.utils import coloransi
Brian Granger
generics.py => utils/generics.py
r2022 def test_import_generics():
from IPython.utils import generics
Brian Granger
ipstruct.py => utils/ipstruct.py and imports updated.
r2030 def test_import_ipstruct():
from IPython.utils import ipstruct
Brian Granger
genutils.py => utils/genutils.py and updated imports and tests.
r2023
Brian Granger
PyColorize.py => utils/PyColorize.py and updated imports.
r2042 def test_import_PyColorize():
from IPython.utils import PyColorize
Brian Granger
rlineimpl.py utils/rlineimpl.py and imports updated.
r2044
def test_import_rlineimpl():
Brian Granger
ultraTB.py => core/ultratb.py and imports updated.
r2048 from IPython.utils import rlineimpl
def test_import_strdispatch():
Brian Granger
upgrade_dir.py => utils/upgradedir.py and updated imports.
r2049 from IPython.utils import strdispatch
def test_import_upgradedir():
from IPython.utils import upgradedir
Brian Granger
wildcard.py => utils/wildcard.py and updated imports.
r2051
def test_import_wildcard():
from IPython.utils import wildcard
Brian Granger
winconsole.py => utils/winconsole.py and imports updated.
r2052