Astropy test runner will emit AstropyPendingDeprecationWarning starting v7.2

13 views
Skip to first unread message

Pey Lian Lim

unread,
Jul 7, 2025, 11:37:48 AMJul 7
to astropy-dev
What happened?

https://github.com/astropy/astropy/pull/17874 was merged into main slated for astropy v7.2. Release schedule is at https://github.com/astropy/astropy/wiki/Release-Calendar and will be updated by Release Manager(s) as appropriate.

Am I affected?

If you manage a Python package and have tests *and* if you inherit TestRunner or use "test = TestRunner.make_test_runner_in(...)" (the latter often found in your package __init__.py file if you used Astropy package template in the past).

Are my users affected?

Not yet. Usually PendingDeprecationWarning is not visible to end-users. But in the future, when the warning is upgraded, they might see it on package import (if you have test runner defined in __init__.py).

What should I do?

If you have not already, please test your package against dev version of astropy. You can install nightly wheel if you do not want to build from source. See https://docs.astropy.org/en/latest/install.html#install-pre-built-development-version . If you turn all unhandled warnings into errors in your test suite, it might fail your CI. If you do not, you might see it pop up as a warning in your test log.

See https://github.com/astropy/astropy/issues/16177 for more details. Please stop using astropy test runner. You should be able to use pytest directly to run your tests. Please reach out to astropy-dev if you have questions or concerns.

Thank you for your cooperation.
Reply all
Reply to author
Forward
0 new messages