From f4f0ed72a03c7c6a60c9172e6235a92b036f7591 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 6 Aug 2026 16:22:39 -0700 Subject: [PATCH] stop writing debug files from the diff matcher test helper assert_equal_enough wrote its inputs to files named "token" and "rev" in the current directory on every invocation, littering the repository root whenever the test suite ran. Co-Authored-By: Claude Fable 5 (cherry picked from commit 45f06802001e3290d4513e2f468d4646fd9e45c3) --- test/test_wiki_diff_matcher.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/test_wiki_diff_matcher.py b/test/test_wiki_diff_matcher.py index abc6e72..bf06212 100644 --- a/test/test_wiki_diff_matcher.py +++ b/test/test_wiki_diff_matcher.py @@ -21,8 +21,6 @@ def assert_equal_enough(tokens:List[Token], rev): # the tokens exclude newlines # we allow extra whitespace at the beginning or end token_doc = ''.join(str(t) for t in tokens) - print(token_doc, file = open('token','w')) - print(rev, file = open('rev','w')) token_doc = re.sub(r'( +)|(\n+)|(\t+)', _replace_whitespace, token_doc).strip() rev = re.sub(r'( +)|(\n+)|(\t+)', _replace_whitespace, rev).strip() assert token_doc == rev