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

Method on_fail

locust/test/subprocess_utils.py:80–87  ·  view source on GitHub ↗
(self, reason: str = "")

Source from the content-addressed store, hash-verified

78 self.stderr_reader = gevent.spawn(_consume_output, self.proc.stderr, self.stderr_output)
79
80 def on_fail(self, reason: str = ""):
81 __tracebackhide__ = True
82 if self._failed:
83 return
84 self._failed = True
85 for line in self.stderr_output:
86 print(line)
87 pytest.fail(reason)
88
89 def __enter__(self) -> "TestProcess":
90 return self

Callers 4

closeMethod · 0.95
expectMethod · 0.95
expect_anyMethod · 0.95
not_expect_anyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected