Skip to content

Fix parsing failure for unindented doctest comments#185

Open
Erotemic wants to merge 3 commits intomainfrom
codex/fix-indentation-issue-in-parser
Open

Fix parsing failure for unindented doctest comments#185
Erotemic wants to merge 3 commits intomainfrom
codex/fix-indentation-issue-in-parser

Conversation

@Erotemic
Copy link
Owner

Summary

  • update the doctest parser to infer indentation for comment placeholders so they no longer trigger IndentationError when comments ignore block indentation
  • add a regression test that covers doctests using unindented comment separators

Testing

  • pytest tests/test_parser.py -k comment

Codex Task

@Erotemic
Copy link
Owner Author

Fixes #184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant