def test_signal_handling(self):
        def noop(x, y):
            pass
        signal.signal(signal.SIGALRM, noop)

        p1 = pexpect.spawn('bash -c "echo READY; sleep 2; echo END"')
        p1.expect('READY')
        signal.alarm(1)
        p1.expect('END')
This tests the error handling of a signal interrupt (usually a
dataset/ETHPy150Open Calysto/metakernel/metakernel/tests/test_expect.py/ExpectTestCase.test_signal_handling