Skip to content

Commit 2d3d597

Browse files
committed
smoke test faulthandler patches
1 parent 0dd3012 commit 2d3d597

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ipykernel/tests/test_kernel.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,20 @@ def test_save_history():
189189
nt.assert_in(u'a=1', content)
190190
nt.assert_in(u'b=u"abcþ"', content)
191191

192+
193+
@dec.skip_without('faulthandler')
194+
def test_smoke_faulthandler():
195+
with kernel() as kc:
196+
code = u'\n'.join([
197+
'import faulthandler, signal',
198+
'faulthandler.enable()',
199+
'faulthandler.register(signal.SIGTERM)',
200+
])
201+
_, reply = execute(code, kc=kc)
202+
print(_)
203+
nt.assert_equal(reply['status'], 'ok', reply.get('traceback', ''))
204+
205+
192206
def test_help_output():
193207
"""ipython kernel --help-all works"""
194208
tt.help_all_output_test('kernel')

0 commit comments

Comments
 (0)