File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -132,27 +132,6 @@ def __init__(self, bytes):
132132 await kernel .dispatch_shell (msg )
133133
134134
135- async def test_enter_eventloop (kernel ):
136- kernel .eventloop = None
137- kernel .enter_eventloop ()
138- kernel .eventloop = asyncio .get_running_loop ()
139- kernel .enter_eventloop ()
140- called = 0
141-
142- def check_status ():
143- nonlocal called
144- if called == 0 :
145- msg = kernel .session .msg ("debug_request" , {})
146- kernel .msg_queue .put (msg )
147- called += 1
148- kernel .io_loop .call_later (0.001 , check_status )
149-
150- kernel .io_loop .call_later (0.001 , check_status )
151- kernel .start ()
152- while called < 2 :
153- await asyncio .sleep (0.1 )
154-
155-
156135async def test_do_one_iteration (kernel ):
157136 kernel .msg_queue = asyncio .Queue ()
158137 await kernel .do_one_iteration ()
You can’t perform that action at this time.
0 commit comments