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

Method setUp

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

Source from the content-addressed store, hash-verified

1325
1326class TestConflictResolve(ConflictBase):
1327 def setUp(self):
1328 ConflictBase.setUp(self)
1329 self.parser.set_conflict_handler("resolve")
1330 self.parser.add_option("-v", "--version", action="callback",
1331 callback=self.show_version, help="show version")
1332
1333 def test_conflict_resolve(self):
1334 v_opt = self.parser.get_option("-v")

Callers

nothing calls this directly

Calls 3

set_conflict_handlerMethod · 0.80
setUpMethod · 0.45
add_optionMethod · 0.45

Tested by

no test coverage detected