Whole file
andy-landy/traceback_with_variables
The author described this change as “fix PYTHONPATH in test_main.py”. It counts as a record because the check below fails on the code as it stood at 00a62bcaf and passes on a5d54fba2, with nothing else changed between the two runs.
Fix saved2020-11-08
Sharing licenceMIT · LICENSE
Change size+2 −2
What the code was meant to do, written into the code itself as a save note
fix PYTHONPATH in test_main.py
The change
| 37 | 37 | assert_equals_ref(name, value) | |
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | - | def run_code(tmp_path, code: str, raises: bool = False) -> str: | |
| 40 | + | def run_code(tmp_path, python_argv: List[str], code: str, code_argv: List[str], raises: bool = False) -> str: | |
| 41 | 41 | (tmp_path / 'traceback_with_variables').symlink_to(Path(traceback_with_variables.__file__).parent) | |
| 42 | 42 | code_path = tmp_path / 'code.py' | |
| 43 | 43 | code_path.write_text(code) | |
| 44 | 44 | ||
| 45 | - | return run_cmd(argv=['python3', code_path], raises=raises) | |
| 45 | + | return run_cmd(argv=['python3'] + python_argv + [code_path] + code_argv, raises=raises) | |
| 46 | 46 | ||
| 47 | 47 | ||
| 48 | 48 | def run_cmd(argv: List[str], raises: bool = False): |
The check that tells the two apart
fail→pass·tests/test_main.py::test_simple_code_no_args
Check file tests/test_main.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it00a62bcaff7c267079d7d3af017afe7b1cdd8cc3
Broken version dated2020-11-08
Moduletests.utils
Units changedrun_code
Fingerprint50c4d33a8f71495b
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.