(self, name, optimize_python=None)
| 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] |
nothing calls this directly
no test coverage detected