Changing the scope from module to session to fix the event_loop issue.

This commit is contained in:
Nicolas Patry 2025-02-20 18:07:46 +01:00
parent 9de97f99c8
commit 19490afb25
No known key found for this signature in database
GPG Key ID: 4242CEF24CB6DBF9

View File

@ -352,13 +352,13 @@ def ignore_logprob_response_snapshot(snapshot):
return snapshot.use_extension(IgnoreLogProbResponseComparator)
@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
def error_log():
with tempfile.TemporaryFile("w+") as tmp:
yield tmp
@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
async def launcher(error_log):
@contextlib.contextmanager
def local_launcher(