MCPcopy Index your code
hub / github.com/RustPython/RustPython / exit

Method exit

Lib/test/test_optparse.py:42–43  ·  view source on GitHub ↗
(self, status=0, msg=None)

Source from the content-addressed store, hash-verified

40
41class InterceptingOptionParser(OptionParser):
42 def exit(self, status=0, msg=None):
43 raise InterceptedError(exit_status=status, exit_message=msg)
44
45 def error(self, msg):
46 raise InterceptedError(error_message=msg)

Callers 15

__main__.pyFile · 0.45
_get_awaited_by_tasksFunction · 0.45
testFunction · 0.45
executeFunction · 0.45
runsourceMethod · 0.45
mainFunction · 0.45
runTestsMethod · 0.45
test_exitMethod · 0.45
drain_queueFunction · 0.45

Calls 1

InterceptedErrorClass · 0.85

Tested by

no test coverage detected