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

Method run_case

Lib/test/test_dtrace.py:52–61  ·  view source on GitHub ↗
(self, name, optimize_python=None)

Source from the content-addressed store, hash-verified

50 COMMAND_ARGS = []
51
52 def run_case(self, name, optimize_python=None):
53 actual_output = normalize_trace_output(self.trace_python(
54 script_file=abspath(name + self.EXTENSION),
55 python_file=abspath(name + ".py"),
56 optimize_python=optimize_python))
57
58 with open(abspath(name + self.EXTENSION + ".expected")) as f:
59 expected_output = f.read().rstrip()
60
61 return (expected_output, actual_output)
62
63 def generate_trace_command(self, script_file, subcommand=None):
64 command = self.COMMAND + [script_file]

Callers

nothing calls this directly

Calls 6

trace_pythonMethod · 0.95
normalize_trace_outputFunction · 0.85
abspathFunction · 0.70
openFunction · 0.50
rstripMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected