Repository navigation
tests: preserve tracked filenames in the repeated prose checker - #7472
Open
memphis19888-glitch wants to merge 1 commit into
Open
memphis19888-glitch wants to merge 1 commit into
memphis19888-glitch wants to merge 1 commit into
Conversation
|
Independent Windows 11 / CPython 3.12.14 check at I also checked a fresh temporary Git index with No issue found in the reviewed change. Synthetic inputs only. AI-assisted testing and review. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repeated-prose checker splits tracked Markdown filenames on whitespace and receives Git's quoted spelling for non-ASCII names. It therefore fails to read those files instead of checking their contents.
Use NUL-delimited
git ls-filesoutput and decode each filename withos.fsdecode. A temporary Git-index regression withcore.quotePath=truereads a filename with spaces and a non-ASCII filename, excludes an untracked file, and finds the expected duplicate line pair in each.Claim: #7333 (comment)
Follow-up to merged #6305 in a different checker. No dependency on the open WINDOW/fence changes in #4490 or #6066; their logic is unchanged.
Validation on Windows, CPU only, standard-library synthetic fixtures:
python -X utf8 -I tests/test_docs_repeated_lines.py.python -X utf8 -m py_compile tests/test_docs_repeated_lines.pyandgit diff --checkpass.de7fdae0d6fff499099daa6b38d30dd9a0b48894. Publication commitd9cd93e78e56874cab775ea1793e0f8ec776f592applies that exact patch on the fork's existing base; the tested file is byte-identical and no workflow changes are included.AI-assisted with OpenAI Codex.