(self)
| 4083 | |
| 4084 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 4085 | def test_strings(self): |
| 4086 | strings = (b'hello', b'', b'a', b'b', b'', b'bye', b'', b'lop') |
| 4087 | a, b = self.Pipe() |
| 4088 | p = self.Process(target=self._child_strings, args=(b, strings)) |
| 4089 | p.start() |
| 4090 | |
| 4091 | for s in strings: |
| 4092 | for i in range(200): |
| 4093 | if a.poll(0.01): |
| 4094 | break |
| 4095 | x = a.recv_bytes() |
| 4096 | self.assertEqual(s, x) |
| 4097 | |
| 4098 | p.join() |
| 4099 | |
| 4100 | @classmethod |
| 4101 | def _child_boundaries(cls, r): |
nothing calls this directly
no test coverage detected