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

Function list_cases

Lib/test/bisect_cmd.py:58–72  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

56
57
58def list_cases(args):
59 cmd = python_cmd()
60 cmd.extend(['-m', 'test', '--list-cases'])
61 cmd.extend(args.test_args)
62 proc = subprocess.run(cmd,
63 stdout=subprocess.PIPE,
64 universal_newlines=True)
65 exitcode = proc.returncode
66 if exitcode:
67 cmd = format_shell_args(cmd)
68 print("Failed to list tests: %s failed with exit code %s"
69 % (cmd, exitcode))
70 sys.exit(exitcode)
71 tests = proc.stdout.splitlines()
72 return tests
73
74
75def run_tests(args, tests, huntrleaks=None):

Callers 1

mainFunction · 0.70

Calls 6

python_cmdFunction · 0.85
format_shell_argsFunction · 0.85
extendMethod · 0.45
runMethod · 0.45
exitMethod · 0.45
splitlinesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…