Skip to content

Commit

Permalink
update test_should_handle
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Oct 22, 2024
1 parent 1800bb8 commit 93fabd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_kernel_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ async def test_process_control(kernel):
await kernel.process_control_message(msg)


async def test_should_handle(kernel):
def test_should_handle(kernel):
msg = kernel.session.msg("debug_request", {})
kernel.aborted.add(msg["header"]["msg_id"])
assert not await kernel.should_handle(kernel.control_socket, msg, [])
assert kernel.should_handle(kernel.control_socket, msg, []) is True


async def test_dispatch_shell(kernel):
Expand Down

0 comments on commit 93fabd2

Please sign in to comment.