| 324 | def test_loop_ignores_socket_timeout(self): |
| 325 | |
| 326 | class Connection(self.app.connection_for_read().__class__): |
| 327 | obj = None |
| 328 | |
| 329 | def drain_events(self, **kwargs): |
| 330 | self.obj.connection = None |
| 331 | raise socket.timeout(10) |
| 332 | |
| 333 | c = self.NoopConsumer() |
| 334 | c.connection = Connection(self.app.conf.broker_url) |