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

Method setUp

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

Source from the content-addressed store, hash-verified

1017
1018class TestExtendAddTypes(BaseTest):
1019 def setUp(self):
1020 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE,
1021 option_class=self.MyOption)
1022 self.parser.add_option("-a", None, type="string", dest="a")
1023 self.parser.add_option("-f", "--file", type="file", dest="file")
1024
1025 def tearDown(self):
1026 if os.path.isdir(os_helper.TESTFN):

Callers

nothing calls this directly

Calls 2

add_optionMethod · 0.45

Tested by

no test coverage detected