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

Method test_script

Lib/test/test_argparse.py:7213–7216  ·  view source on GitHub ↗
(self, compiled=False)

Source from the content-addressed store, hash-verified

7211 f'usage: {expected} [-h]')
7212
7213 def test_script(self, compiled=False):
7214 basename = os_helper.TESTFN
7215 script_name = self.make_script(self.dirname, basename, compiled=compiled)
7216 self.check_usage(os.path.basename(script_name), script_name, '-h')
7217
7218 def test_script_compiled(self):
7219 self.test_script(compiled=True)

Callers 1

test_script_compiledMethod · 0.95

Calls 3

make_scriptMethod · 0.95
check_usageMethod · 0.95
basenameMethod · 0.45

Tested by

no test coverage detected