MCPcopy Create free account
hub / github.com/pybind/pybind11 / __init__

Method __init__

tests/test_exceptions.py:311–314  ·  view source on GitHub ↗
(self, failure_point)

Source from the content-addressed store, hash-verified

309
310class FlakyException(Exception):
311 def __init__(self, failure_point):
312 if failure_point == "failure_point_init":
313 raise ValueError("triggered_failure_point_init")
314 self.failure_point = failure_point
315
316 def __str__(self):
317 if self.failure_point == "failure_point_str":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected