-
Notifications
You must be signed in to change notification settings - Fork 57
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
Prevent astropy warnings in tests #977
Prevent astropy warnings in tests #977
Conversation
Do we know why these are bad files? Almost every test file that the |
In asdf at least they're intentionally bad, for example: def test_no_asdf_header(tmpdir):
content = b"What? This ain't no ASDF file" That content isn't recognized as ASDF, so it gets passed to |
Yeah, a ton of them. Start here and scroll up. https://github.com/spacetelescope/jwst/runs/2422915561?check_suite_focus=true#step:10:845 That said, you bring up a good point. Some are likely bad files, but I've looked at a few, and they are not even writing out files, which makes me think |
This commit seems responsible: astropy/astropy@070cd94#diff-6ebde8ab98c018da8dd092e05ef30d9607dc9f998bfed0df91a6b67c671ca651 The warning is emitted from within that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good.
And let's discuss any issues with |
astropy 4.2.1 started emitting an additional warning when opening bad files. This PR marks tests that open known bad files to ignore that warning.
Resolves #966