(self)
| 2489 | |
| 2490 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 2491 | def test_thousand(self): |
| 2492 | if self.TYPE == 'manager': |
| 2493 | self.skipTest('test not appropriate for {}'.format(self.TYPE)) |
| 2494 | passes = 1000 |
| 2495 | lock = self.Lock() |
| 2496 | conn, child_conn = self.Pipe(False) |
| 2497 | for j in range(self.N): |
| 2498 | p = self.Process(target=self._test_thousand_f, |
| 2499 | args=(self.barrier, passes, child_conn, lock)) |
| 2500 | p.start() |
| 2501 | self.addCleanup(p.join) |
| 2502 | |
| 2503 | for i in range(passes): |
| 2504 | for j in range(self.N): |
| 2505 | self.assertEqual(conn.recv(), i) |
| 2506 | |
| 2507 | # |
| 2508 | # |
nothing calls this directly
no test coverage detected