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

Fix tests failing with PyYAML 6.0 #101

Merged
merged 2 commits into from Jun 12, 2022
Merged

Fix tests failing with PyYAML 6.0 #101

merged 2 commits into from Jun 12, 2022

Conversation

RKrahl
Copy link
Member

@RKrahl RKrahl commented Jun 12, 2022

Calling yaml.load() without providing the Loader argument has been deprecated in PyYAML 5.1 and been dropped in PyYAML 6.0. This updates several example scripts to call yaml.safe_load() instead of yaml.load() (which is essentially the same as adding a SafeLoader argument in the yaml.load() call).

Note that while the change is only in examples, some of them are also used in the test suite. So this change also fixes the tests to fail with PyYAML 6.0.

@RKrahl RKrahl added the compatibility Issues about compatibility with libraries or other packages label Jun 12, 2022
@RKrahl RKrahl added this to the 1.0.0 milestone Jun 12, 2022
@RKrahl RKrahl merged commit 7d3028e into develop Jun 12, 2022
@RKrahl RKrahl deleted the yaml-load branch June 12, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Issues about compatibility with libraries or other packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant