Looks like the tests are passing but it did log one huge warning:
Click me
```
(.venv) barry@Liams-MBP mapepire-python % pytest tests/
/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/pytest_asyncio/plugin.py:208: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"
warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
====================================================== test session starts ======================================================
platform darwin -- Python 3.12.4, pytest-8.3.2, pluggy-1.5.0
rootdir: /Users/barry/Repos/mapepire/mapepire-python/tests
configfile: pytest.ini
plugins: asyncio-0.24.0, env-1.1.3
asyncio: mode=Mode.STRICT, default_loop_scope=None
collected 59 items
tests/async_pool_test.py ..................... [ 35%]
tests/cl_test.py ... [ 40%]
tests/pooling_test.py ........ [ 54%]
tests/query_manager_test.py ..... [ 62%]
tests/simple_test.py .... [ 69%]
tests/sql_test.py .................. [100%]
======================================================= warnings summary ========================================================
pooling_test.py::test_pool_with_no_space_but_ready_job_returns_ready_job
/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/sslproto.py", line 88, in __init__
def __init__(self, loop, ssl_protocol):
RuntimeError: coroutine ignored GeneratorExit
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================== 59 passed, 1 warning in 66.52s (0:01:06) ============================================
Task was destroyed but it is pending!
task: wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>>
Exception ignored in:
Traceback (most recent call last):
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1325, in close_connection
await self.close_transport()
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1343, in close_transport
if await self.wait_for_connection_lost():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1366, in wait_for_connection_lost
async with asyncio_timeout(self.close_timeout):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 145, in timeout
loop = events.get_running_loop()
^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no running event loop
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>>
Exception ignored in:
Traceback (most recent call last):
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1325, in close_connection
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1343, in close_transport
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1366, in wait_for_connection_lost
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 145, in timeout
RuntimeError: no running event loop
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>>
Exception ignored in:
Traceback (most recent call last):
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1325, in close_connection
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1343, in close_transport
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1366, in wait_for_connection_lost
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 145, in timeout
RuntimeError: no running event loop
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>>
Exception ignored in:
Traceback (most recent call last):
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1325, in close_connection
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1343, in close_transport
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1366, in wait_for_connection_lost
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 145, in timeout
RuntimeError: no running event loop
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>>
Task was destroyed but it is pending!
task: wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>>
Exception ignored in:
Traceback (most recent call last):
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1325, in close_connection
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1343, in close_transport
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1366, in wait_for_connection_lost
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 145, in timeout
RuntimeError: no running event loop
Exception ignored in:
Traceback (most recent call last):
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1325, in close_connection
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1343, in close_transport
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1366, in wait_for_connection_lost
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 145, in timeout
RuntimeError: no running event loop
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>>
Task was destroyed but it is pending!
task: wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for= wait_for= cb=[Task.task_wakeup(), _wait.._on_completion() at /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py:534]>>
Exception ignored in:
Traceback (most recent call last):
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1325, in close_connection
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1343, in close_transport
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1366, in wait_for_connection_lost
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 145, in timeout
RuntimeError: no running event loop
Exception ignored in:
Traceback (most recent call last):
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1325, in close_connection
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1343, in close_transport
File "/Users/barry/Repos/mapepire/mapepire-python/.venv/lib/python3.12/site-packages/websockets/legacy/protocol.py", line 1366, in wait_for_connection_lost
File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 145, in timeout
RuntimeError: no running event loop
Task was destroyed but it is pending!
task: wait_for=>
Task was destroyed but it is pending!
task: wait_for=>
```
Fixes #
Changes proposed in this pull request:
pool
for async supportAsync usage:
Pool usage
Before submitting
dev
if it is not already.CONTRIBUTING
docs.CONTRIBUTING
docs.