Skip to content

Commit 21fd27a

Browse files
committed
-
1 parent 2c08818 commit 21fd27a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ class MockKernel(KernelMixin, Kernel): # type:ignore
174174
def __init__(self, *args, **kwargs):
175175
self._initialize()
176176
self.shell = MagicMock()
177-
self.shell_stop = Event()
178-
self.control_stop = Event()
177+
#self.shell_stop = Event()
178+
#self.control_stop = Event()
179179
super().__init__(*args, **kwargs)
180+
print(f"{self.shell_stop=}")
181+
print(f"{self.control_stop=}")
180182

181183
async def do_execute(
182184
self, code, silent, store_history=True, user_expressions=None, allow_stdin=False

tests/test_kernelapp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ def test_start_app():
3636
def trigger_stop():
3737
time.sleep(1)
3838
app.stop()
39+
print("stopped from thread")
3940

4041
thread = threading.Thread(target=trigger_stop)
4142
thread.start()
4243
app.init_sockets()
44+
print("starting")
4345
app.start()
46+
print("stopped")
4447
app.cleanup_connection_file()
4548
app.kernel.destroy()
4649
app.close()

0 commit comments

Comments
 (0)