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 b3a0999 commit 4854752Copy full SHA for 4854752
tests/test_start_kernel.py
@@ -14,6 +14,14 @@
14
15
@flaky(max_runs=3)
16
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
25
cmd = dedent(
26
"""
27
from ipykernel.kernelapp import launch_new_instance
@@ -40,7 +48,7 @@ def test_ipython_start_kernel_userns():
40
48
content = msg["content"]
41
49
assert content["found"]
42
50
text = content["data"]["text/plain"]
43
- assert "DummyMod" in text
51
+ assert EXPECTED in text
44
52
45
53
46
54
0 commit comments