forked from pool/python-psycopg
* Fix multiple connection attempts when a host name resolve to multiple IP addresses (🎫`699`). * Use `typing.Self` as a more correct return value annotation of context managers and other self-returning methods (see 🎫`708`). - Add patch fix-pool-import.patch: * Correct where we are importing from due to new pool release. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg?expand=0&rev=7
14 lines
514 B
Diff
14 lines
514 B
Diff
Index: psycopg-3.1.17/tests/pool/test_sched_async.py
|
|
===================================================================
|
|
--- psycopg-3.1.17.orig/tests/pool/test_sched_async.py
|
|
+++ psycopg-3.1.17/tests/pool/test_sched_async.py
|
|
@@ -8,7 +8,7 @@ import pytest
|
|
from psycopg._compat import create_task
|
|
|
|
try:
|
|
- from psycopg_pool.sched import AsyncScheduler
|
|
+ from psycopg_pool.sched_async import AsyncScheduler
|
|
except ImportError:
|
|
# Tests should have been skipped if the package is not available
|
|
pass
|