'If reading the input stream fails with a C{IOError} with errno
C{EINTR}, L{main} ignores it and continues reading.'

def test_readInterrupted(self):

    excInfos = []
    class FakeStream(object, ):
        count = 0
        def read(oself, size):
            oself.count += 1
            if (oself.count == 1):
                raise IOError(errno.EINTR)
            else:
                excInfos.append(sys.exc_info())
            return ''
    self.readStream = FakeStream()
    main(self.fdopen)
    self.assertEqual('', self.writeStream.getvalue())
    self.assertEqual([(None, None, None)], excInfos)
