Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Dec 20, 2024
1 parent e87ba37 commit f0818b6
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f0818b6

Please sign in to comment.