(self, to_not_expect, *, stream="stderr")
| 156 | self.on_fail(f"Did not see expected message: '{to_expect}'. Got\n{output}") |
| 157 | |
| 158 | def not_expect_any(self, to_not_expect, *, stream="stderr"): |
| 159 | __tracebackhide__ = True |
| 160 | |
| 161 | if stream == "stdout": |
| 162 | buffer = self.stdout_output |
| 163 | else: |
| 164 | buffer = self.stderr_output |
| 165 | |
| 166 | if any(to_not_expect in line for line in buffer): |
| 167 | self.on_fail(f"Found unexpected message: '{to_not_expect}'.") |
| 168 | |
| 169 | def send_input(self, content: str): |
| 170 | if self.use_pty: |