MCPcopy Index your code
hub / github.com/python/cpython / InterceptingOptionParser

Class InterceptingOptionParser

Lib/test/test_optparse.py:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 return self.error_message or self.exit_message or "intercepted error"
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)
47
48
49class BaseTest(unittest.TestCase):

Callers 15

setUpMethod · 0.85
setUpMethod · 0.85
setUpMethod · 0.85
setUpMethod · 0.85
setUpMethod · 0.85
test_versionMethod · 0.85
test_no_versionMethod · 0.85
setUpMethod · 0.85
setUpMethod · 0.85
setUpMethod · 0.85
setUpMethod · 0.85
make_parserMethod · 0.85

Calls

no outgoing calls

Tested by 15

setUpMethod · 0.68
setUpMethod · 0.68
setUpMethod · 0.68
setUpMethod · 0.68
setUpMethod · 0.68
test_versionMethod · 0.68
test_no_versionMethod · 0.68
setUpMethod · 0.68
setUpMethod · 0.68
setUpMethod · 0.68
setUpMethod · 0.68
make_parserMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…