question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timeline for removal of deprecated astropy.tests.pytest_plugins

See original GitHub issue

Importing from astropy.tests.pytest_plugins was officially deprecated in the 3.0 release, but has been maintained for backwards compatibility (see #6606 and specifically c16c2fa).

However, the discussion on https://github.com/astropy/pytest-doctestplus/issues/22 seems to indicate that imports of the form from astropy.tests import pytest_plugins are definitively broken with recent versions of pytest.

This raises a question: should we move forward with the removal of the astropy.tests.pytest_plugins submodule earlier than we would for other deprecations?

cc @nicoddemus

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
bsipoczcommented, Nov 23, 2018

I suppose that’s the only solution as we are not suppose to remove any API from LTS.

I suspect the only up-to-date users of LTS is the CI for the affiliated packages 😉

1reaction
drdavellacommented, Nov 26, 2018

@pllim at that time it was not clear (or I was not paying attention) that this would be completely broken by pytest-4.0 and/or when exactly 4.0 would be released. So in light of that information, I think it should be removed as soon as possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removal of deprecated astropy.tests.pytest_plugins ... - GitHub
Hi, My recent commits in PR #659 passed almost all the tests that should be have been passed except for the Travis CI....
Read more >
Full Changelog — Astropy v5.2
The deprecated private astropy._erfa module has been removed. Use pyerfa , which is a dependency of astropy and can be imported directly using...
Read more >
Deprecations and Removals — pytest documentation
This page lists all pytest features that are currently deprecated or have been removed in past major releases. The objective is to give...
Read more >
Full Changelog — Astropy v3.2.dev994
The astropy.io.fits.new_table function is now fully deprecated (though will not be removed for a long time, considering how widely it is used). Instead...
Read more >
pytest Documentation - Read the Docs
when deprecated warnings are effectively removed. However, in the specific case where users capture any type of warnings in their test, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found