Closed mshafer-NI closed 3 years ago
Thanks for the quick bug report. I mistakenly thought path.read_bytes().decode() was equivalent to path.read_text(), but read_text also modifies newlines. I will create a fix soon.
I fixed this in v0.6.1. Sorry for the bug and thanks again for the bug report.
Thank you for the quick response.
New (breaking) behavior in 0.6.0 on Windows to only use Line Feeds.
Example way to reproduce:
git clone https://github.com/mshafer-NI/reproduce_problem_upgrading_pytest_snapshot
poetry install
# will install 0.5.0poetry run pytest
# passes0.6.0
forpytest-snapshot
poetry lock
poetry install
poetry run pytest
# test fails(if don't have poetry installed)
git clone https://github.com/mshafer-NI/reproduce_problem_upgrading_pytest_snapshot
python -m venv _env
env\Scripts\activate
pip install pytest pytest-snapshot==0.5.0
pytest
# passespip isntall -U pytest-snapshot==0.6.0
pytest
# fails