We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404c437 commit 922bb55Copy full SHA for 922bb55
ipykernel/kernelbase.py
@@ -41,6 +41,7 @@
41
from jupyter_client.session import Session
42
43
from ._version import kernel_protocol_version
44
+from .inprocess.socket import DummySocket
45
46
CONTROL_PRIORITY = 1
47
SHELL_PRIORITY = 10
@@ -173,6 +174,11 @@ def __init__(self, **kwargs):
173
174
175
self._stdin_msg = None
176
self._stdin_lock = threading.Lock()
177
+
178
+ if isinstance(self.stdin_socket, DummySocket):
179
+ # This is a test
180
+ self.stdin_stream = None
181
+ return
182
self.stdin_stream = ZMQStream(self.stdin_socket)
183
184
def handle_msg(msg):
0 commit comments