Skip to content

TST: test_noncelestial_scale emits RuntimeWarning for some cases #9310

Closed as not planned

Description

@pllim

Description

Some test cases fed into test_noncelestial_scale in astropy.wcs.test_utils emit RuntimeWarning. Affected code:

mywcs.wcs.cdelt = cdelt
mywcs.wcs.ctype = ['RA---TAN', 'FREQ']
ps = non_celestial_pixel_scales(mywcs)
assert_almost_equal(ps.to_value(u.deg), np.array([0.1, 0.2]))

xref #9010 (review)

Expected behavior

Tests complete without RuntimeWarning.

Actual behavior

RuntimeWarning happens when you set pytest to show warnings.

Activity

  1. pllim commented on Oct 27, 2023

    @pllim
    MemberAuthor

    We turn all unhandled warnings into exception now, so this is probably moot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions