]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
async_pool module renamed for consistency with other _async ones
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 13 Aug 2021 09:58:33 +0000 (10:58 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 13 Aug 2021 09:58:33 +0000 (10:58 +0100)
psycopg/psycopg/pool/__init__.py
psycopg/psycopg/pool/pool_async.py [moved from psycopg/psycopg/pool/async_pool.py with 99% similarity]
tests/pool/test_pool_async.py

index 3797a0479cf644118d3b66b88082b30e8dc6b341..d95d314859886a1ec03633ccd01bc46b5fdd8c91 100644 (file)
@@ -5,7 +5,7 @@ psycopg connection pool package
 # Copyright (C) 2021 The Psycopg Team
 
 from .pool import ConnectionPool
-from .async_pool import AsyncConnectionPool
+from .pool_async import AsyncConnectionPool
 from .errors import PoolClosed, PoolTimeout, TooManyRequests
 
 __all__ = [
similarity index 99%
rename from psycopg/psycopg/pool/async_pool.py
rename to psycopg/psycopg/pool/pool_async.py
index 9b9a12e0b2c13c642122ab7d28f84dd58020418e..fca08195a904fd4cca4f5c49a55b804acbae9d34 100644 (file)
@@ -1,5 +1,5 @@
 """
-psycopg synchronous connection pool
+psycopg asynchronous connection pool
 """
 
 # Copyright (C) 2021 The Psycopg Team
index 139a8fd768dfbae44787c4574e3c5bbf1b37efb7..7a1d333ceaaa4b24ec715874ddd7a18f27807d4e 100644 (file)
@@ -681,7 +681,7 @@ async def test_grow(dsn, monkeypatch, retries):
 @pytest.mark.timing
 async def test_shrink(dsn, monkeypatch):
 
-    from psycopg.pool.async_pool import ShrinkPool
+    from psycopg.pool.pool_async import ShrinkPool
 
     results = []