diff --git a/test/refactor.py b/test/refactor.py index d9b5bc7f..7598bc7d 100644 --- a/test/refactor.py +++ b/test/refactor.py @@ -82,7 +82,7 @@ def _collect_file_tests(code, path, lines_to_execute): yield RefactoringCase(name, first, line_nr, index, path, kwargs, type_, second) if match is None: - raise Exception(f"Didn't match any test for {path}") + raise Exception(f"Didn't match any test for {path}, {code!r}") if match.end() != len(code): raise Exception(f"Didn't match until the end of the file in {path}")