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

Method _test_recursion

Lib/test/_test_multiprocessing.py:701–709  ·  view source on GitHub ↗
(cls, wconn, id)

Source from the content-addressed store, hash-verified

699
700 @classmethod
701 def _test_recursion(cls, wconn, id):
702 wconn.send(id)
703 if len(id) < 2:
704 for i in range(2):
705 p = cls.Process(
706 target=cls._test_recursion, args=(wconn, id+[i])
707 )
708 p.start()
709 p.join()
710
711 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
712 def test_recursion(self):

Callers 1

test_recursionMethod · 0.95

Calls 4

sendMethod · 0.45
ProcessMethod · 0.45
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected