MCPcopy
hub / github.com/tornadoweb/tornado / test_join_timeout

Method test_join_timeout

tornado/test/queues_test.py:360–364  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

358
359 @gen_test
360 def test_join_timeout(self):
361 q = self.queue_class() # type: queues.Queue
362 q.put(0)
363 with self.assertRaises(TimeoutError):
364 yield q.join(timeout=timedelta(seconds=0.01))
365
366
367class PriorityQueueJoinTest(QueueJoinTest):

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected