Skip to content

Commit 8120150

Browse files
committed
Make displayhook in signal test kernel app
Recent changes in ipykernel have made the tests fail because the IPKernelApp subclass used in tests was missing a displayhook attribute.
1 parent 3b068f4 commit 8120150

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_client/tests/signalkernel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import sys
1010
import time
1111

12+
from ipykernel.displayhook import ZMQDisplayHook
1213
from ipykernel.kernelbase import Kernel
1314
from ipykernel.kernelapp import IPKernelApp
1415

@@ -61,7 +62,8 @@ def kernel_info_request(self, *args, **kwargs):
6162
class SignalTestApp(IPKernelApp):
6263
kernel_class = SignalTestKernel
6364
def init_io(self):
64-
pass # disable stdout/stderr capture
65+
# Overridden to disable stdout/stderr capture
66+
self.displayhook = ZMQDisplayHook(self.session, self.iopub_socket)
6567

6668
if __name__ == '__main__':
6769
# make startup artificially slow,

0 commit comments

Comments
 (0)