[issue12643] code.InteractiveConsole ignores sys.excepthook
aliles
report at bugs.python.org
Mon Aug 20 10:11:59 CEST 2012
aliles added the comment:
Submitted patch. Patch creates a new unit test suite with basic unit tests for InteractiveConsole. Enhances InteractiveConsole to call sys.excepthook instead of it's own handler if the user has overridden the excepthook.
The unit tests use the new unittest.mock module and ExitStack class for contextlib.
----------
keywords: +patch
nosy: +ncoghlan
Added file: http://bugs.python.org/file26920/issue12643.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12643>
_______________________________________
More information about the Python-bugs-list
mailing list