MCPcopy
hub / github.com/locustio/locust / not_expect_any

Method not_expect_any

locust/test/subprocess_utils.py:158–167  ·  view source on GitHub ↗
(self, to_not_expect, *, stream="stderr")

Source from the content-addressed store, hash-verified

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:

Calls 1

on_failMethod · 0.95