Skip to content

Commit d90eb28

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fd9591d commit d90eb28

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ipykernel/shellchannel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from __future__ import annotations
44

55
import asyncio
6-
from typing import Any
76
from threading import current_thread
7+
from typing import Any
88

99
import zmq
1010

tests/test_start_kernel.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,14 @@ def test_ipython_start_kernel_userns():
5151

5252

5353
def 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)
8483
def test_ipython_start_kernel_no_userns():

0 commit comments

Comments
 (0)