Skip to content

Commit 0c61be4

Browse files
committed
is_alive is async
1 parent bf0afa0 commit 0c61be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbclient/tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def test_kernel_death(self):
492492
km = executor.start_kernel_manager()
493493

494494
with patch.object(km, "is_alive") as alive_mock:
495-
alive_mock.return_value = False
495+
alive_mock.return_value = make_async(False)
496496
# Will be a RuntimeError or subclass DeadKernelError depending
497497
# on if jupyter_client or nbconvert catches the dead client first
498498
with pytest.raises(RuntimeError):

0 commit comments

Comments
 (0)