]> git.ipfire.org Git - thirdparty/psycopg.git/commit
More robust null pool tests
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 8 Jan 2022 18:37:14 +0000 (19:37 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 9 Jan 2022 17:48:04 +0000 (18:48 +0100)
commitf6f53c3e0c2bcef98f1566d6dd9b40e8a00580c5
treee30f562d6a054a0a81490790590a0c6f7cb62c80
parentb32a005303800a9e950d16cb280e34c635453654
More robust null pool tests

Fix race conditions of tasks completing before a concurrent client is
queued.

Fix test relying on fixed broken behaviour of copy().

Use connection.info rather than connection.pgconn to obtain higher level
results (e.g. Enum instead of int).
tests/pool/test_null_pool.py
tests/pool/test_null_pool_async.py
tests/pool/test_pool.py
tests/pool/test_pool_async.py