def test_io_poller_eintr(self): exceptions = [] restore_func = select.select def mock_select(*_): raise select.error(EINTR) try: amqpstorm.io.select.select = mock_select poller = Poller(0, exceptions, 30) self.assertFalse(poller.is_ready) self.assertFalse(exceptions) finally: amqpstorm.io.select.select = restore_func
def test_io_poller_eintr(self, _): exceptions = [] poller = Poller(0, exceptions, 30) self.assertFalse(poller.is_ready) self.assertFalse(exceptions)