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

[2.4.1] test_less_strict_verify_option tests for the wrong warning #816

Open
olebole opened this issue Mar 14, 2024 · 0 comments
Open

[2.4.1] test_less_strict_verify_option tests for the wrong warning #816

olebole opened this issue Mar 14, 2024 · 0 comments

Comments

@olebole
Copy link
Member

olebole commented Mar 14, 2024

With the new pytest (and new Astropy), we seem to get an AstropyUserWarning instead of a VerifyWarning with invalid keywords on Debian:

____________ TestImageFileCollection.test_less_strict_verify_option ____________

self = <ccdproc.tests.test_image_collection.TestImageFileCollection object at 0x7f68946d58d0>
triage_setup = <ccdproc.tests.pytest_fixtures.triage_setup.<locals>.Result object at 0x7f689477b490>

    def test_less_strict_verify_option(self, triage_setup):
        # Tests for feature request
        #
        #    https://github.com/astropy/ccdproc/issues/607
        #
        # which would allow reading of otherwise invalid FITS headers.
    
        bad_header = """
            NAXIS1  =                   10 / length of data axis 1
            NAXIS2  =                   10 / length of data axis 2
            TESTVERI= '2017/02/13-16:51:38 / Test VerifyWarning
        """
    
>       with pytest.warns(VerifyWarning):
E       astropy.utils.exceptions.AstropyUserWarning: The following header keyword is invalid or follows an unrecognized non-standard convention:
E       17/02/13-16:51:38 / Test VerifyWarning

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_ccdproc/build/ccdproc/tests/test_image_collection.py:968: AstropyUserWarning

This happens on both Python 3.11 and Python 3.12.

  • pytest-8.0.2
  • astropy 6.0.0

Full build log

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

No branches or pull requests

1 participant