Test the barrier's default timeout
(self)
| 2467 | |
| 2468 | @warnings_helper.ignore_fork_in_thread_deprecation_warnings() |
| 2469 | def test_default_timeout(self): |
| 2470 | """ |
| 2471 | Test the barrier's default timeout |
| 2472 | """ |
| 2473 | barrier = self.Barrier(self.N, timeout=0.5) |
| 2474 | results = self.DummyList() |
| 2475 | self.run_threads(self._test_default_timeout_f, (barrier, results)) |
| 2476 | self.assertEqual(len(results), barrier.parties) |
| 2477 | |
| 2478 | def test_single_thread(self): |
| 2479 | b = self.Barrier(1) |
nothing calls this directly
no test coverage detected