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

Method test_boundaries

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

Source from the content-addressed store, hash-verified

4107
4108 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
4109 def test_boundaries(self):
4110 r, w = self.Pipe(False)
4111 p = self.Process(target=self._child_boundaries, args=(r,))
4112 p.start()
4113 time.sleep(2)
4114 L = [b"first", b"second"]
4115 for obj in L:
4116 w.send_bytes(obj)
4117 w.close()
4118 p.join()
4119 self.assertIn(r.recv_bytes(), L)
4120
4121 @classmethod
4122 def _child_dont_merge(cls, b):

Callers

nothing calls this directly

Calls 9

PipeMethod · 0.80
assertInMethod · 0.80
ProcessMethod · 0.45
startMethod · 0.45
sleepMethod · 0.45
send_bytesMethod · 0.45
closeMethod · 0.45
joinMethod · 0.45
recv_bytesMethod · 0.45

Tested by

no test coverage detected