From a12dc19285200f53d8a2d39d4d12141bae1e9899 Mon Sep 17 00:00:00 2001 From: James Garner Date: Thu, 17 Oct 2024 09:46:53 +1300 Subject: [PATCH] test: configure asyncio_default_fixture_loop_scope Set it to function, the narrowest scope, which the docs say will be the default in future. This will silence deprecation warnings about this variable not being set, and may help with the unit test failures on python 3.9 currently. --- pytest.ini | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..97527120 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +asyncio_default_fixture_loop_scope = function +