(self)
| 22 | print("Done") |
| 23 | |
| 24 | async def test_timeout(self): |
| 25 | p = pexpect.spawn("cat") |
| 26 | with self.assertRaises(pexpect.TIMEOUT): |
| 27 | await p.expect("foo", timeout=1, async_=True) |
| 28 | |
| 29 | p = pexpect.spawn("cat") |
| 30 | assert await p.expect(["foo", pexpect.TIMEOUT], timeout=1, async_=True) == 1 |
| 31 | |
| 32 | async def test_eof(self): |
| 33 | p = pexpect.spawn("cat") |
nothing calls this directly
no test coverage detected