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

Method test_dispatch

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

Source from the content-addressed store, hash-verified

3657
3658 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
3659 def test_dispatch(self):
3660 if gc.isenabled():
3661 gc.disable()
3662 self.addCleanup(gc.enable)
3663 try:
3664 multiprocessing.managers.dispatch(FakeConnection(), None, None)
3665 except pyqueue.Empty as e:
3666 wr = weakref.ref(e)
3667 self.assertEqual(wr(), None)
3668
3669#
3670#

Callers

nothing calls this directly

Calls 5

FakeConnectionClass · 0.85
addCleanupMethod · 0.80
disableMethod · 0.45
dispatchMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected