-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 5.1 dumps strings differently on different platforms #275
Comments
Thanks, I have a Mac available right now and can reproduce it. |
Thanks for reacting so quick. |
I hope in less than a couple of days. I can't release myself. |
Since it's not really clear what the error is from the original post:
which is unreadable (for humans as well as PyYAML) |
Not sure if related, but I'm getting But only when I'm using Python 3.7 with pyyaml |
@wvidana this is unrelated to the reported issue. |
We just released 5.2b1 https://pypi.org/project/PyYAML/5.2b1/ which should fix this. |
We released 5.2: https://pypi.org/project/PyYAML/5.2/ |
Closing. Please reopen if necessary. Thanks! |
After 5.1 has been released, our CI builds started to fail. The reason is different outputs on Linux, Mac and Windows, depending on Python version.
The problem displays as different way to dump string containing tabs, on different platforms. I'd accept any of dump variants from 5.1 if it would be consistent across platforms. But having it different creates a mess with automated tests.
I have made simple unit test to reproduce the problem (Blazemeter/taurus#1076). The code to reproduce is:
This test works fine on Linux with any Python version, Windows with Python 3.
It fails on MacOS with Python 2.7 and on Windows with Python 2.7.
I double-checked that version of PyYAML is 5.1 on all builds.
Relevant CI links:
Linux and Mac: https://travis-ci.org/Blazemeter/taurus/builds/507459846
Windows: https://ci.appveyor.com/project/undera/taurus/builds/23134929
The text was updated successfully, but these errors were encountered: