'Test that we handle interrupted system calls'

def test_it_handles_interrupted_syscalls(self):

    if WIN32:
        return
    prev_handler = signal.signal(signal.SIGALRM, (lambda x, y: 1))
    signal.alarm(1)
    time.sleep(0.1)
    (status, out, err) = git.Git.execute([u'sleep', u'1'])
    self.assertEqual(status, 0)
    signal.signal(signal.SIGALRM, prev_handler)
