From f0818b688ca67e4fa104af0591b58bbe13b78c78 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Fri, 20 Dec 2024 16:06:53 +0100 Subject: [PATCH] - --- tests/test_io.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/test_io.py b/tests/test_io.py index 9615538f..aca2694e 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -29,17 +29,11 @@ def ctx(): @pytest.fixture() async def iopub_thread(ctx): - try: - async with zmq_anyio.Socket(ctx.socket(zmq.PUB)) as pub: - thread = IOPubThread(pub) - thread.start() - - yield thread + async with zmq_anyio.Socket(ctx.socket(zmq.PUB)) as pub: + thread = IOPubThread(pub) + thread.start() - thread.close() - thread.stop() - except Exception: - pass + yield thread async def test_io_api(iopub_thread):