Set default_flow_style=None in yaml.dump calls#52957
Conversation
Co-Authored-By: Wayne Werner <waynejwerner@gmail.com>
|
I bet there's a unicode issue on py3. When we're using pytest this assertion style will actually give us information 😄 Of course, right now... 😢 You're probably aware of both these options, but you could do to see what the actual text is. |
|
i'm fine with just sticking to just |
Codecov Report
@@ Coverage Diff @@
## 2019.2.1 #52957 +/- ##
============================================
+ Coverage 28.78% 36.32% +7.54%
============================================
Files 1563 1576 +13
Lines 267054 269470 +2416
Branches 57953 56051 -1902
============================================
+ Hits 76862 97896 +21034
+ Misses 189762 160525 -29237
- Partials 430 11049 +10619
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## 2019.2.1 #52957 +/- ##
============================================
+ Coverage 29.78% 36.66% +6.88%
============================================
Files 1574 1577 +3
Lines 269397 269540 +143
Branches 58069 57477 -592
============================================
+ Hits 80227 98832 +18605
+ Misses 188741 159768 -28973
- Partials 429 10940 +10511
Continue to review full report at Codecov.
|
What does this PR do?
In PyYaml 5.1 they changed the
default_flow_stylefrom None to False. Changing this back to None in salt since this is a breaking change to keep backwards compatibility. Here is the PR/commit that added this: yaml/pyyaml#256 yaml/pyyaml@507a464Would appreciate any further review as I'm not sure if we want to keep backwards compatibility or update salt to ensure
default_flow_style=Falseworks properly. But I think this is the least obtrusive change for now.What issues does this PR fix or reference?
Fixes up some tests on Fedora which has PyYaml 5.1 installed:
#52930
#52929
#52928
#52927
PyYAML 5.1:
PyYAML 3.13:
With this change it will always dump like so:
PyYAML 5.1:
PyYAML 3.13:
Tests written?
Yes
Commits signed with GPG?
Yes