Skip to content

Fix deprecation warnings #1663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Conversation

pquentin
Copy link
Member

In preparation for elasticsearch-py 8.x support, I've looked at deprecation warnings emitted when running the test suite and fixed them, following the official recommendation.

The way filterwarnings work is that by default we raise an exception instead of a warning (this is what error does), but then we also add special cases, currently two of them.

I also removed the pins on pytest-mock and coverage: they were only needed to support Python 2.7 and produced deprecation warnings themselves. The benefit is that the test suite will break if a new deprecation warning is introduced. If this causes too much noise, we can always adjust our strategy later.

@pquentin pquentin requested review from JoshMock and ezimuel August 25, 2023 09:46
@pquentin pquentin self-assigned this Aug 25, 2023
@pquentin pquentin merged commit 9afbea1 into elastic:main Aug 25, 2023
@pquentin pquentin deleted the fix-deprecation-warnings branch August 25, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants