MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / __del__

Method __del__

test/mitmproxy/proxy/tutils.py:296–304  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

294 return True
295
296 def __del__(self):
297 # Playbooks are only executed on assert (which signals that the playbook is partially
298 # complete), so we need to signal if someone forgets to assert and playbooks aren't
299 # evaluated.
300 is_final_destruct = not hasattr(self, "_errored")
301 if is_final_destruct or (
302 not self._errored and len(self.actual) < len(self.expected)
303 ):
304 raise RuntimeError("Unfinished playbook!")
305
306
307class reply(events.Event):

Callers 1

test_unfinishedFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_unfinishedFunction · 0.64