forked from void-linux/void-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1354.diff
More file actions
30 lines (26 loc) · 890 Bytes
/
1354.diff
File metadata and controls
30 lines (26 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From https://github.com/ipython/ipykernel/pull/1354
diff --git a/tests/test_start_kernel.py b/tests/test_start_kernel.py
index f2a632be..71f4bdc0 100644
--- a/tests/test_start_kernel.py
+++ b/tests/test_start_kernel.py
@@ -14,6 +14,14 @@
@flaky(max_runs=3)
def test_ipython_start_kernel_userns():
+ import IPython
+
+ if IPython.version_info > (9, 0): # noqa:SIM108
+ EXPECTED = "IPythonMainModule"
+ else:
+ # not this since https://github.com/ipython/ipython/pull/14754
+ EXPECTED = "DummyMod"
+
cmd = dedent(
"""
from ipykernel.kernelapp import launch_new_instance
@@ -40,7 +48,7 @@ def test_ipython_start_kernel_userns():
content = msg["content"]
assert content["found"]
text = content["data"]["text/plain"]
- assert "DummyMod" in text
+ assert EXPECTED in text
@flaky(max_runs=3)