Skip to content
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

Tools: Update PyYAML version. #2279

Merged
merged 1 commit into from
Aug 12, 2019
Merged

Tools: Update PyYAML version. #2279

merged 1 commit into from
Aug 12, 2019

Conversation

Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Aug 12, 2019

Fixes #2278.

@@ -154,20 +154,20 @@ def _frontmatter(self, case_filename, case_values):
features += self.attribs['meta'].get('features', [])
features = list(OrderedDict.fromkeys(features))
if len(features):
lines += ['features: ' + re.sub('\n\s*', ' ', yaml.dump(features).strip())]
lines += ['features: ' + re.sub('\n\s*', ' ', yaml.dump(features, default_flow_style=True).strip())]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default changed in yaml/pyyaml#256.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is weird how the library picks an option where a default option needs to explicitly set as True. The actual default action is without the default option is the equivalent of False. Sounds very counterintuitive.

Anyway, it's not a problem of Test262 and thanks for fixing this up.

@leobalter leobalter merged commit c4e5d69 into tc39:master Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider updating PyYAML
2 participants