Skip to content

TST/DEP: upgrade to pytest 9.0 #18854

Closed

Description

@neutrinoceros

Pytest 9.0 was just released, and contains a couple interesting features listed below. This issue is a reminder to utilize these features once we're able to perform the upgrade. To be clear, our setup is already compatible, but we should not be requiring brand new software to test astropy, as this would complicate downstream re-packaging.

Features:

  • native toml configuration (migrate from [tool.pytest.ini_options] to [tool.pytest])
  • a new strict=true option, which encompass xfail_strict=true as well as other options we should be using too

Activity

  1. Haidarabbas731 commented on Nov 9, 2025

    @Haidarabbas731

    Would like to contribute to this

  2. neutrinoceros commented on Nov 9, 2025

    @neutrinoceros
    ContributorAuthor

    Thanks for your interest, but I should clarify that the blocker here is time: we need to wait a reasonable amount of time before we can drop pytest 8.x
    In recent history, the consensus has been that "reasonable" is about a year, and I don't see it becoming much shorter for the time being. Of course you're welcome to help with this in a year if you're still interested by then, but if you're looking to contribute now please prioritize other issues. Thank you !

  3. pllim commented on Nov 10, 2025

    @pllim
    Member

    Maybe a year lol

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

    dependenciesPull requests that update a dependency filetesting

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions