Make the space in error comments optional#19546
Open
wyattscarpenter wants to merge 17 commits intopython:masterfrom
Open
Make the space in error comments optional#19546wyattscarpenter wants to merge 17 commits intopython:masterfrom
wyattscarpenter wants to merge 17 commits intopython:masterfrom
Conversation
Contributor
Author
|
Ah, there are a lot of urls with fragments in there. Hmm. Maybe the whole parser should be changed and simplified... Or perhaps just match space and beginning of line. |
wyattscarpenter
commented
Jul 31, 2025
Contributor
Author
|
Why the heck am I still getting test failures like |
Contributor
Author
|
I added a .strip to it... it's then constructed with a template string... what the hell... [edit: commit with .strip not pictured in current branch history] |
Contributor
Author
|
Oh... |
for more information, see https://pre-commit.ci
wyattscarpenter
commented
Jul 31, 2025
Contributor
Author
|
Amusingly, this seems to have uncovered several problems with the expected values in some test cases, which I will now fix... |
wyattscarpenter
commented
Aug 2, 2025
wyattscarpenter
commented
Feb 14, 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.
Make the spaces in test error comments optional and more flexible, so instead of
# E: whateveryou can now write#E :whatever(for example). This will prevent people from erroneously entering error lines which are then ignored. Fixes #19547.I have written tests for this feature, but have not affirmatively documented it, because I don't want to encourage irregularity in the error comments people write.
Amusingly, this seems to have uncovered several problems with the expected values in some test cases, which I have also fixed. These fixes fell into 3 categories:
# E:or an# N:type: ignorecommand not recognized after other comment #19366# E :, so now that that syntax with the interstitial space is valid the E triggers. I turned this one into an xfail instead, based on what it was doing.