modal-labs / pytest-markdown-docs

Run pytest on markdown code fence blocks
MIT License
57 stars 7 forks source link

Remove the "fake line numbers" hack #39

Closed freider closed 4 days ago

freider commented 4 days ago

Fixes https://github.com/modal-labs/pytest-markdown-docs/issues/36

To get real line numbers in a consistent way, we instead insert a number of blank lines in the "exec":ed Python code so we can use default traceback line numbers after that

Also renamed some stuff...

freider commented 4 days ago

@prbot approve