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

Method setUp

Lib/test/test_argparse.py:7006–7014  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7004class TestWrappingMetavar(TestCase):
7005
7006 def setUp(self):
7007 super().setUp()
7008 self.parser = ErrorRaisingArgumentParser(
7009 'this_is_spammy_prog_with_a_long_name_sorry_about_the_name'
7010 )
7011 # this metavar was triggering library assertion errors due to usage
7012 # message formatting incorrectly splitting on the ] chars within
7013 metavar = '<http[s]://example:1234>'
7014 self.parser.add_argument('--proxy', metavar=metavar)
7015
7016 @force_not_colorized
7017 def test_help_with_metavar(self):

Callers

nothing calls this directly

Calls 4

superClass · 0.85
setUpMethod · 0.45
add_argumentMethod · 0.45

Tested by

no test coverage detected