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

Method verify_valid_flag

Lib/test/test_cmd_line.py:40–46  ·  view source on GitHub ↗
(self, cmd_line)

Source from the content-addressed store, hash-verified

38 assert_python_failure('< .')
39
40 def verify_valid_flag(self, cmd_line):
41 rc, out, err = assert_python_ok(cmd_line)
42 if out != b'':
43 self.assertEndsWith(out, b'\n')
44 self.assertNotIn(b'Traceback', out)
45 self.assertNotIn(b'Traceback', err)
46 return out
47
48 @support.cpython_only
49 def test_help(self):

Callers 8

test_helpMethod · 0.95
test_help_envMethod · 0.95
test_help_xoptionsMethod · 0.95
test_help_allMethod · 0.95
test_optimizeMethod · 0.95
test_site_flagMethod · 0.95
test_isolatedmodeMethod · 0.95

Calls 3

assert_python_okFunction · 0.90
assertEndsWithMethod · 0.80
assertNotInMethod · 0.80

Tested by

no test coverage detected