##// END OF EJS Templates
restore default custom_exc after test
Min RK -
Show More
@@ -929,5 +929,7 b' def test_custom_exc_count():'
929 ip.set_custom_exc((SyntaxError,), hook)
929 ip.set_custom_exc((SyntaxError,), hook)
930 before = ip.execution_count
930 before = ip.execution_count
931 ip.run_cell("def foo()", store_history=True)
931 ip.run_cell("def foo()", store_history=True)
932 # restore default excepthook
933 ip.set_custom_exc((), None)
932 nt.assert_equal(hook.call_count, 1)
934 nt.assert_equal(hook.call_count, 1)
933 nt.assert_equal(ip.execution_count, before + 1)
935 nt.assert_equal(ip.execution_count, before + 1)
General Comments 0
You need to be logged in to leave comments. Login now