Skip to content

Commit

Permalink
Remove test_enter_eventloop (#1084)
Browse files Browse the repository at this point in the history
* Test enter event-loop

* Remove test_enter_eventloop
  • Loading branch information
davidbrochart authored Feb 3, 2023
1 parent 4d1a2d8 commit 1d67450
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions ipykernel/tests/test_kernel_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,27 +132,6 @@ def __init__(self, bytes):
await kernel.dispatch_shell(msg)


async def test_enter_eventloop(kernel):
kernel.eventloop = None
kernel.enter_eventloop()
kernel.eventloop = asyncio.get_running_loop()
kernel.enter_eventloop()
called = 0

def check_status():
nonlocal called
if called == 0:
msg = kernel.session.msg("debug_request", {})
kernel.msg_queue.put(msg)
called += 1
kernel.io_loop.call_later(0.001, check_status)

kernel.io_loop.call_later(0.001, check_status)
kernel.start()
while called < 2:
await asyncio.sleep(0.1)


async def test_do_one_iteration(kernel):
kernel.msg_queue = asyncio.Queue()
await kernel.do_one_iteration()
Expand Down

0 comments on commit 1d67450

Please sign in to comment.