Skip to content

gh-138135: allow ignoring line breaks in doctest output#138136

Closed
picnixz wants to merge 7 commits intopython:mainfrom
picnixz:feat/doctest/split-string-138135
Closed

gh-138135: allow ignoring line breaks in doctest output#138136
picnixz wants to merge 7 commits intopython:mainfrom
picnixz:feat/doctest/split-string-138135

Conversation

@picnixz
Copy link
Copy Markdown
Member

@picnixz picnixz commented Aug 25, 2025

@picnixz
Copy link
Copy Markdown
Member Author

picnixz commented Aug 25, 2025

This is a proposal but I don't think if it's actually just possible to extend NORMALIZE_WHITESPACE directly as we can't distinguish between a real line break or a visual one (with a line break that is only meant for readability and NORMALIZE_WHITESPACE, we would still end up with a whitespace instead)

@picnixz picnixz marked this pull request as draft August 25, 2025 11:44
@AA-Turner AA-Turner changed the title gh-138135: allow to ignore line breaks in doctest output gh-138135: allow ignoring line breaks in doctest output Aug 25, 2025
@picnixz picnixz force-pushed the feat/doctest/split-string-138135 branch from 8a902f2 to 3b13872 Compare August 29, 2025 09:52
@picnixz picnixz force-pushed the feat/doctest/split-string-138135 branch from d21edda to 6d2159b Compare August 29, 2025 10:12
@picnixz picnixz marked this pull request as ready for review September 6, 2025 10:50
@picnixz
Copy link
Copy Markdown
Member Author

picnixz commented Jan 4, 2026

Considering the fact that this may not be completely what a user wants, I'm going to close this. I think it's just better to write proper unittests or check doctests differently.

@picnixz picnixz closed this Jan 4, 2026
@picnixz picnixz deleted the feat/doctest/split-string-138135 branch January 4, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants