MCPcopy Index your code
hub / github.com/python/cpython / test_queue_get

Method test_queue_get

Lib/test/_test_multiprocessing.py:3647–3656  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3645
3646 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3647 def test_queue_get(self):
3648 queue = self.mgr.Queue()
3649 if gc.isenabled():
3650 gc.disable()
3651 self.addCleanup(gc.enable)
3652 try:
3653 queue.get_nowait()
3654 except pyqueue.Empty as e:
3655 wr = weakref.ref(e)
3656 self.assertEqual(wr(), None)
3657
3658 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3659 def test_dispatch(self):

Callers

nothing calls this directly

Calls 5

get_nowaitMethod · 0.95
QueueMethod · 0.80
addCleanupMethod · 0.80
disableMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected