-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ElasticsearchWarning quits query in pytest #2742
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
Comments
Hello, and thanks for raising this issue. However, warnings raised by the library don't raise exceptions: elasticsearch-py/elasticsearch/__init__.py Lines 71 to 73 in e4a9563
(If it were The line responsible for the exception is |
Must be something in pytest, direct it works fine, thanks for the help, sorry to have bugged You :-)
|
Right, pytest can be configured to raise errors on warnings so that you don't miss them. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html for more details. |
elasticsearch = 8.17.0
When the
elasticsearch.ElasticsearchWarning
triggers the response returnsNone
.A warning should just print and continue.
The workaround it to add a limit to everything
The text was updated successfully, but these errors were encountered: