Skip to content

Commit 15bb2fa

Browse files
committed
Merge branch 'main' into zmq_anyio
2 parents 4f83ff3 + 4854752 commit 15bb2fa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/test_start_kernel.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414

1515
@flaky(max_runs=3)
1616
def test_ipython_start_kernel_userns():
17+
import IPython
18+
19+
if IPython.version_info > (9, 0): # noqa:SIM108
20+
EXPECTED = "IPythonMainModule"
21+
else:
22+
# not this since https://github.com/ipython/ipython/pull/14754
23+
EXPECTED = "DummyMod"
24+
1725
cmd = dedent(
1826
"""
1927
from ipykernel.kernelapp import launch_new_instance
@@ -46,7 +54,7 @@ def test_ipython_start_kernel_userns():
4654
content = msg["content"]
4755
assert content["found"]
4856
text = content["data"]["text/plain"]
49-
assert "DummyMod" in text
57+
assert EXPECTED in text
5058

5159

5260
@flaky(max_runs=3)

0 commit comments

Comments
 (0)