From 1853fb1c5ad74f08e7d88c76c43f7334b75c7ba9 Mon Sep 17 00:00:00 2001 From: mhucka Date: Mon, 23 Feb 2026 22:17:34 +0000 Subject: [PATCH] Remove `asyncio_default_fixture_loop_scope` setting The behavior of the default value of `asyncio_default_fixture_loop_scope` changed in Pytest 1.2.0. Now setting it to "function" results in an error. Removing the setting from `pytest.ini` makes things work again. --- dev_tools/conf/pytest.ini | 3 --- 1 file changed, 3 deletions(-) diff --git a/dev_tools/conf/pytest.ini b/dev_tools/conf/pytest.ini index 6a0929daa..5f7e1fb2d 100644 --- a/dev_tools/conf/pytest.ini +++ b/dev_tools/conf/pytest.ini @@ -16,8 +16,5 @@ markers = slow: marks tests as slow (deselect with '-m "not slow"') -# Silence deprecation warnings about option "asyncio_default_fixture_loop_scope" -asyncio_default_fixture_loop_scope = "function" - filterwarnings = ignore:Skipped assert_qasm_is_consistent_with_unitary because qiskit.*:UserWarning