ESSS / pytest-replay

Saves runs to allow to re-execute previous pytest runs to reproduce crashes or flaky tests
MIT License
54 stars 4 forks source link

Ignore empty lines in replay files #70

Open DavideCanton opened 1 week ago

DavideCanton commented 1 week ago

When cutting/pasting stuff around in the replay files, lines can be commented out, but if some blank line is added, the run errors. I suspect this is because the code always does a json.loads if the line is not a comment.

What about skipping empty lines along with commented ones?

nicoddemus commented 6 days ago

Sounds reasonable. 👍

DavideCanton commented 6 days ago

I can submit a PR in these days