Skip to content

Make it so that error comments in tests are not ignored if they occur at the beginning of a line#21172

Open
wyattscarpenter wants to merge 3 commits intopython:masterfrom
wyattscarpenter:error_message_leading_line
Open

Make it so that error comments in tests are not ignored if they occur at the beginning of a line#21172
wyattscarpenter wants to merge 3 commits intopython:masterfrom
wyattscarpenter:error_message_leading_line

Conversation

@wyattscarpenter
Copy link
Copy Markdown
Contributor

@wyattscarpenter wyattscarpenter commented Apr 5, 2026

Fixes #19547. Previously, error comments in a test were silently ignored if occurring on an empty line, but it is better that they should be honored, due to the principle of least surprise.

@wyattscarpenter wyattscarpenter marked this pull request as ready for review April 5, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"# E:" lines (etc) in test files are ignored at the beginning of lines

1 participant