(self)
| 422 | q.put(arg) |
| 423 | |
| 424 | def test_daemon_argument(self): |
| 425 | if self.TYPE == "threads": |
| 426 | self.skipTest('test not appropriate for {}'.format(self.TYPE)) |
| 427 | |
| 428 | # By default uses the current process's daemon flag. |
| 429 | proc0 = self.Process(target=self._test) |
| 430 | self.assertEqual(proc0.daemon, self.current_process().daemon) |
| 431 | proc1 = self.Process(target=self._test, daemon=True) |
| 432 | self.assertTrue(proc1.daemon) |
| 433 | proc2 = self.Process(target=self._test, daemon=False) |
| 434 | self.assertFalse(proc2.daemon) |
| 435 | |
| 436 | @classmethod |
| 437 | def _test(cls, q, *args, **kwds): |
nothing calls this directly
no test coverage detected