Skip to content

Commit f0818b6

Browse files
committed
-
1 parent e87ba37 commit f0818b6

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Diff for: tests/test_io.py

+4-10
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,11 @@ def ctx():
2929

3030
@pytest.fixture()
3131
async def iopub_thread(ctx):
32-
try:
33-
async with zmq_anyio.Socket(ctx.socket(zmq.PUB)) as pub:
34-
thread = IOPubThread(pub)
35-
thread.start()
36-
37-
yield thread
32+
async with zmq_anyio.Socket(ctx.socket(zmq.PUB)) as pub:
33+
thread = IOPubThread(pub)
34+
thread.start()
3835

39-
thread.close()
40-
thread.stop()
41-
except Exception:
42-
pass
36+
yield thread
4337

4438

4539
async def test_io_api(iopub_thread):

0 commit comments

Comments
 (0)