]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Set asyncio mode in pytest configuration
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Jan 2022 15:17:41 +0000 (16:17 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Jan 2022 15:19:17 +0000 (16:19 +0100)
Remove the warning raised in pytest-async >= 0.17.0 if the setting is
missing.

pyproject.toml

index cb9993946263af3d73c276e874f121e51b91d171..2c8dfc050b5f3f7be8227ca3dd41ee5dde47125e 100644 (file)
@@ -6,6 +6,7 @@ build-backend = "setuptools.build_meta"
 line-length = 79
 
 [tool.pytest.ini_options]
+asyncio_mode = "auto"
 filterwarnings = [
     "error",
 ]