Skip to content

TST: Localize warning ignore in typestubs_for_units.py #18567

Closed

Description

@pllim

I worry that a global ignore here is going to change the warning state for unrelated tests in the test run.

warnings.simplefilter("ignore", AstropyDeprecationWarning)

Desired outcome: Localize the warning ignore using context manager to only where it is really needed, or exclude the problematic "deprecated.py" and not use any ignore at all.

This is caused by:

Activity

  1. added this to the v7.2.0 milestone on Aug 29, 2025
  2. mhvk commented on Aug 29, 2025

    @mhvk
    Contributor

    Thanks, we should have noticed that! Fix in #18568

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions