(self)
| 1864 | os.kill(pid, signal.SIGINT) |
| 1865 | |
| 1866 | def test_wait_result(self): |
| 1867 | if isinstance(self, ProcessesMixin) and sys.platform != 'win32': |
| 1868 | pid = os.getpid() |
| 1869 | else: |
| 1870 | pid = None |
| 1871 | |
| 1872 | c = self.Condition() |
| 1873 | with c: |
| 1874 | self.assertFalse(c.wait(0)) |
| 1875 | self.assertFalse(c.wait(0.1)) |
| 1876 | |
| 1877 | p = self.Process(target=self._test_wait_result, args=(c, pid)) |
| 1878 | p.start() |
| 1879 | |
| 1880 | self.assertTrue(c.wait(60)) |
| 1881 | if pid is not None: |
| 1882 | self.assertRaises(KeyboardInterrupt, c.wait, 60) |
| 1883 | |
| 1884 | p.join() |
| 1885 | |
| 1886 | |
| 1887 | class _TestEvent(BaseTestCase): |
nothing calls this directly
no test coverage detected