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

Method setUp

Lib/test/test_optparse.py:1291–1295  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1289
1290class ConflictBase(BaseTest):
1291 def setUp(self):
1292 options = [make_option("-v", "--verbose", action="count",
1293 dest="verbose", help="increment verbosity")]
1294 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE,
1295 option_list=options)
1296
1297 def show_version(self, option, opt, value, parser):
1298 parser.values.show_version = 1

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected