'L{KQueueReactor} handles L{errno.EINTR} in C{doKEvent} by returning.'

def test_EINTR(self):

    class FakeKQueue(object, ):
        '\n                                                A    fake    KQueue    that    raises    L{errno.EINTR}    when    C{control}    is    called,\n                                                like    a    real    KQueue    would    if    it    was    interrupted.\n                                                '
        def control(self, *args, **kwargs):
            raise OSError(errno.EINTR, 'Interrupted')
    reactor = KQueueReactor(makeFakeKQueue(FakeKQueue, _fakeKEvent))
    reactor.doKEvent(0)
