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

Method setUp

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

Source from the content-addressed store, hash-verified

1236
1237class TestCallbackVarArgs(BaseTest):
1238 def setUp(self):
1239 options = [make_option("-a", type="int", nargs=2, dest="a"),
1240 make_option("-b", action="store_true", dest="b"),
1241 make_option("-c", "--callback", action="callback",
1242 callback=self.variable_args, dest="c")]
1243 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE,
1244 option_list=options)
1245
1246 def variable_args(self, option, opt, value, parser):
1247 self.assertTrue(value is None)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected