File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import asyncio
6- from typing import Any
76from threading import current_thread
7+ from typing import Any
88
99import zmq
1010
Original file line number Diff line number Diff line change @@ -51,15 +51,14 @@ def test_ipython_start_kernel_userns():
5151
5252
5353def test_start_kernel_background_thread ():
54-
5554 cmd = dedent (
5655 """
5756 import threading
5857 from ipykernel.kernelapp import launch_new_instance
5958
6059 def launch():
6160 launch_new_instance()
62-
61+
6362 thread = threading.Thread(target=launch)
6463 thread.start()
6564 thread.join()
@@ -71,14 +70,14 @@ def launch():
7170 msg = client .get_shell_msg (timeout = TIMEOUT )
7271 content = msg ["content" ]
7372 assert content ["status" ] == "ok"
74-
73+
7574 client .inspect ("a" )
7675 msg = client .get_shell_msg (timeout = TIMEOUT )
7776 content = msg ["content" ]
7877 assert content ["found" ]
7978 text = content ["data" ]["text/plain" ]
8079 assert "1" in text
81-
80+
8281
8382@pytest .mark .flaky (max_runs = 3 )
8483def test_ipython_start_kernel_no_userns ():
You can’t perform that action at this time.
0 commit comments