(self)
| 366 | q.put(arg) |
| 367 | |
| 368 | def test_daemon_argument(self): |
| 369 | if self.TYPE == "threads": |
| 370 | self.skipTest('test not appropriate for {}'.format(self.TYPE)) |
| 371 | |
| 372 | # By default uses the current process's daemon flag. |
| 373 | proc0 = self.Process(target=self._test) |
| 374 | self.assertEqual(proc0.daemon, self.current_process().daemon) |
| 375 | proc1 = self.Process(target=self._test, daemon=True) |
| 376 | self.assertTrue(proc1.daemon) |
| 377 | proc2 = self.Process(target=self._test, daemon=False) |
| 378 | self.assertFalse(proc2.daemon) |
| 379 | |
| 380 | @classmethod |
| 381 | def _test(cls, q, *args, **kwds): |
nothing calls this directly
no test coverage detected