From 03e01f356f6e37a19c8613e282578de164c8f367 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Tue, 16 Apr 2024 06:32:28 +0000 Subject: [PATCH] munet: move event loop to session scope to avoid python errors --- munet/testing/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/munet/testing/fixtures.py b/munet/testing/fixtures.py index cec0079..4150d28 100644 --- a/munet/testing/fixtures.py +++ b/munet/testing/fixtures.py @@ -161,7 +161,7 @@ def module_autouse(request): raise Exception("Base Munet was not cleaned up/deleted") -@pytest.fixture(scope="module") +@pytest.fixture(scope="session") def event_loop(): """Create an instance of the default event loop for the session.""" loop = get_event_loop()