From b45d30f8ec71bfdfc11d84470830395c82a34706 2018-01-24 15:11:38 From: Min RK Date: 2018-01-24 15:11:38 Subject: [PATCH] restore default custom_exc after test --- diff --git a/IPython/core/tests/test_interactiveshell.py b/IPython/core/tests/test_interactiveshell.py index fd243d6..12bd380 100644 --- a/IPython/core/tests/test_interactiveshell.py +++ b/IPython/core/tests/test_interactiveshell.py @@ -929,5 +929,7 @@ def test_custom_exc_count(): ip.set_custom_exc((SyntaxError,), hook) before = ip.execution_count ip.run_cell("def foo()", store_history=True) + # restore default excepthook + ip.set_custom_exc((), None) nt.assert_equal(hook.call_count, 1) nt.assert_equal(ip.execution_count, before + 1)