MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_recursion

Method test_recursion

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

Source from the content-addressed store, hash-verified

623 p.join()
624
625 def test_recursion(self):
626 rconn, wconn = self.Pipe(duplex=False)
627 self._test_recursion(wconn, [])
628
629 time.sleep(DELTA)
630 result = []
631 while rconn.poll():
632 result.append(rconn.recv())
633
634 expected = [
635 [],
636 [0],
637 [0, 0],
638 [0, 1],
639 [1],
640 [1, 0],
641 [1, 1]
642 ]
643 self.assertEqual(result, expected)
644
645 @classmethod
646 def _test_sentinel(cls, event):

Callers

nothing calls this directly

Calls 7

_test_recursionMethod · 0.95
PipeMethod · 0.80
sleepMethod · 0.45
pollMethod · 0.45
appendMethod · 0.45
recvMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected