(self)
| 710 | |
| 711 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 712 | def test_recursion(self): |
| 713 | rconn, wconn = self.Pipe(duplex=False) |
| 714 | self._test_recursion(wconn, []) |
| 715 | |
| 716 | time.sleep(DELTA) |
| 717 | result = [] |
| 718 | while rconn.poll(): |
| 719 | result.append(rconn.recv()) |
| 720 | |
| 721 | expected = [ |
| 722 | [], |
| 723 | [0], |
| 724 | [0, 0], |
| 725 | [0, 1], |
| 726 | [1], |
| 727 | [1, 0], |
| 728 | [1, 1] |
| 729 | ] |
| 730 | self.assertEqual(result, expected) |
| 731 | |
| 732 | @classmethod |
| 733 | def _test_sentinel(cls, event): |
nothing calls this directly
no test coverage detected