]> git.ipfire.org Git - thirdparty/psycopg.git/commit
chore: use AnyIO 4.0+ in tests dependencies
authorDenis Laxalde <denis.laxalde@dalibo.com>
Wed, 18 Oct 2023 08:35:50 +0000 (10:35 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 20 Oct 2023 15:31:29 +0000 (16:31 +0100)
commit20b64db4000cf4986405392417c32dfbd1715768
tree63fc865b0705d496167361b5e1d4c5f7f9fc2c5d
parent7b4e7a899926f2012eddca31c0f67d1ba06a0c33
chore: use AnyIO 4.0+ in tests dependencies

We set the 'loop_factory' asyncio option for parametrizing the
anyio_backend() fixture as anyio 4.0 has replaced the 'policy' option by
'loop_factory'.

In tests/pool/test_pool_async_noasyncio.py, we previously used
the anyio_backend_options fixture to retrieve the loop policy; now we
build it directly. This could be improved by using the loop_factory, but
only from Python 3.11 with an asyncio.Runner().
psycopg/setup.cfg
tests/conftest.py
tests/constraints.txt
tests/pool/test_pool_async_noasyncio.py