(self)
| 217 | |
| 218 | @gen_test |
| 219 | def test_event_timeout(self): |
| 220 | e = locks.Event() |
| 221 | with self.assertRaises(TimeoutError): |
| 222 | yield e.wait(timedelta(seconds=0.01)) |
| 223 | |
| 224 | # After a timed-out waiter, normal operation works. |
| 225 | self.io_loop.add_timeout(timedelta(seconds=0.01), e.set) |
| 226 | yield e.wait(timedelta(seconds=1)) |
| 227 | |
| 228 | def test_event_set_multiple(self): |
| 229 | e = locks.Event() |
nothing calls this directly
no test coverage detected