-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Clean up test warnings #2991
Clean up test warnings #2991
Conversation
661cf4c
to
dcc27a9
Compare
ea2e23c
to
3ccd376
Compare
3ccd376
to
7a2c8fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
tests/core/utilities/test_request.py
Outdated
async_cache_and_return_session(endpoint_uri) | ||
) | ||
try: | ||
event_loop = asyncio.new_event_loop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is the event_loop
defined here if the try
fails?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Removed the try
and no more warnings were issued.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, once fselmo's question is resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
What was wrong?
There were a bunch of warnings being emitted in various tests.
How was it fixed?
Cleaned up some, mostly by closing loops and sessions.
Limiting
requests
to <=2.29.0 will get rid of the DeprecationWarning:/home/circleci/repo/.tox/py310-core/lib/python3.10/site-packages/urllib3/poolmanager.py:315: DeprecationWarning: The 'strict' parameter is no longer needed on Python 3+. This will raise an error in urllib3 v2.1.0.
, but I opted not to do that. I think they'll clean it up eventually.The warnings from
tests/core/tools/pytest_ethereum/test_deployer.py::test_user_code_with_fixture
are due to this file, and specifically thew3
andstart_websocket_server
fixtures.Todo:
Cute Animal Picture