There are several warnings issued when running integration tests. Three are deprecation notices due to some library deprecations, but the remainder are intermittent websocket warnings (examples below). This entails either resolving the warnings or silencing them if they are not of any concern.
Task was destroyed but it is pending!
task: <Task pending name='Task-335' coro=<WebSocketCommonProtocol.transfer_data() running at /Users/taddeskorris/.pyenv/versions/3.12.0/envs/push312/lib/python3.12/site-packages/websockets/legacy/protocol.py:963> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>
Task was destroyed but it is pending!
task: <Task pending name='Task-336' coro=<WebSocketCommonProtocol.keepalive_ping() running at /Users/taddeskorris/.pyenv/versions/3.12.0/envs/push312/lib/python3.12/site-packages/websockets/legacy/protocol.py:1254> wait_for=<Future pending cb=[Task.task_wakeup()]>>
Task was destroyed but it is pending!
task: <Task pending name='Task-337' coro=<WebSocketCommonProtocol.close_connection() running at /Users/taddeskorris/.pyenv/versions/3.12.0/envs/push312/lib/python3.12/site-packages/websockets/legacy/protocol.py:1301> wait_for=<Task pending name='Task-335' coro=<WebSocketCommonProtocol.transfer_data() running at /Users/taddeskorris/.pyenv/versions/3.12.0/envs/push312/lib/python3.12/site-packages/websockets/legacy/protocol.py:963> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>>
Exception ignored in: <coroutine object WebSocketCommonProtocol.close_connection at 0x10a08b370>
Traceback (most recent call last):
File "/Users/taddeskorris/.pyenv/versions/3.12.0/envs/push312/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1337, in close_connection
await self.close_transport()
File "/Users/taddeskorris/.pyenv/versions/3.12.0/envs/push312/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1353, in close_transport
self.transport.close()
File "/Users/taddeskorris/.pyenv/versions/3.12.0/lib/python3.12/asyncio/selector_events.py", line 1206, in close
super().close()
File "/Users/taddeskorris/.pyenv/versions/3.12.0/lib/python3.12/asyncio/selector_events.py", line 871, in close
self._loop.call_soon(self._call_connection_lost, None)
File "/Users/taddeskorris/.pyenv/versions/3.12.0/lib/python3.12/asyncio/base_events.py", line 772, in call_soon
self._check_closed()
File "/Users/taddeskorris/.pyenv/versions/3.12.0/lib/python3.12/asyncio/base_events.py", line 519, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Also a deprecation warning from some datetime functionality:
/Users/taddeskorris/.pyenv/versions/3.12.0/envs/push312/lib/python3.12/site-packages/botocore/auth.py:419: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
datetime_now = datetime.datetime.utcnow()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Acceptance Criteria:
- Ascertain the origin of these issues
- Resolve the warnings or if they are unavoidable and of no impact to the tests, silence.
- Have the tests run without signaling these warnings.
┆Issue is synchronized with this Jira Task
There are several warnings issued when running integration tests. Three are deprecation notices due to some library deprecations, but the remainder are intermittent websocket warnings (examples below). This entails either resolving the warnings or silencing them if they are not of any concern.
Also a deprecation warning from some datetime functionality:
Acceptance Criteria:
┆Issue is synchronized with this Jira Task