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
TST: pyyaml 5.1 broke several tests #8498
Comments
Shall we just then pin to the old version as a workaround to at least keep the CI passing for PRs? |
Re: pinning -- See #8499 |
We had the same problem in ASDF (see asdf-format/asdf#659). This appears to be due to a backwards-incompatible change in the default setting for flow style in 5.1: yaml/pyyaml#256. EDIT Sorry for the duplicate comment. I missed what @pllim said at the bottom of the comment above. |
cross-post: #8499 (comment) tl;dr -- Need advice from @taldcroft on the best way forward. |
😢 Booh on PyYAML. I'll put this on the list of things to look at before the next release. The important question is about the round-tripping tests still passing. I.e. we have tests like this one that are testing the literal serialization output, and it's (more-or-less) OK if those are failing with PyYAML 5.1. What's not OK is if the functional round-trip tests are failing. But from what I see in the output above, the only tests that are failing are just related to the formatting of the YAML. So the short-term bandaid of pinning PyYAML to an earlier version seems OK. If people using astropy upgrade PyYAML there shouldn't be a problem. |
pyyaml
5.1 was released yesterday (Mar 13, 2019) -- https://pypi.org/project/PyYAML/#historySince then, some tests are broken. They affect tests in both PR and cron levels, wherever we pull in
pyyaml
from PyPI viapip
. Example log: https://travis-ci.org/astropy/astropy/jobs/506241000@drdavella and @Cadair pointed to asdf-format/asdf#659 and yaml/pyyaml#256
The text was updated successfully, but these errors were encountered: