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

Method test_thousand

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

Source from the content-addressed store, hash-verified

2275 conn.send(i)
2276
2277 def test_thousand(self):
2278 if self.TYPE == 'manager':
2279 self.skipTest('test not appropriate for {}'.format(self.TYPE))
2280 passes = 1000
2281 lock = self.Lock()
2282 conn, child_conn = self.Pipe(False)
2283 for j in range(self.N):
2284 p = self.Process(target=self._test_thousand_f,
2285 args=(self.barrier, passes, child_conn, lock))
2286 p.start()
2287 self.addCleanup(p.join)
2288
2289 for i in range(passes):
2290 for j in range(self.N):
2291 self.assertEqual(conn.recv(), i)
2292
2293#
2294#

Callers

nothing calls this directly

Calls 9

skipTestMethod · 0.80
LockMethod · 0.80
PipeMethod · 0.80
addCleanupMethod · 0.80
formatMethod · 0.45
ProcessMethod · 0.45
startMethod · 0.45
assertEqualMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected