'If the platform write call is interrupted (causing the Python wrapper
to raise C{IOError} with errno set to C{EINTR}), the write is re-tried.'

def test_interruptedWrite(self):

    self.port.startListening()
    tunnel = self.system.getTunnel(self.port)
    tunnel.pendingSignals.append(SIGINT)
    self.port.write('hello,    world')
    self.assertEqual(deque(['hello,    world']), tunnel.writeBuffer)
