Searched refs:raise_on_events (Results 1 – 1 of 1) sorted by relevance
19 def __init__(self, raise_on_events=None, exc_type=RuntimeError): argument20 self.raise_on_events = raise_on_events or ()43 if event in self.raise_on_events:91 with TestHook(raise_on_events="sys.addaudithook") as hook1:102 raise_on_events="sys.addaudithook", exc_type=BaseException122 with TestHook(raise_on_events="pickle.find_class") as hook:173 with TestHook(raise_on_events={"open"}) as hook: