Skip to content

Commit e542ff0

Browse files
committed
don't call embed in IPython namespace but ipykernel
1 parent 7510852 commit e542ff0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_embed_kernel.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def connection_file_ready(connection_file):
9393

9494
@flaky(max_runs=3)
9595
def test_embed_kernel_basic():
96-
"""IPython.embed_kernel() is basically functional"""
96+
"""ipykernel.embed.embed_kernel() is basically functional"""
9797
cmd = "\n".join(
9898
[
99-
"from IPython import embed_kernel",
99+
"from ipykernel.embed import embed_kernel",
100100
"def go():",
101101
" a=5",
102102
' b="hi there"',
@@ -129,10 +129,10 @@ def test_embed_kernel_basic():
129129

130130
@flaky(max_runs=3)
131131
def test_embed_kernel_namespace():
132-
"""IPython.embed_kernel() inherits calling namespace"""
132+
"""ipykernel.embed.embed_kernel() inherits calling namespace"""
133133
cmd = "\n".join(
134134
[
135-
"from IPython import embed_kernel",
135+
"from ipykernel.embed import embed_kernel",
136136
"def go():",
137137
" a=5",
138138
' b="hi there"',
@@ -168,10 +168,10 @@ def test_embed_kernel_namespace():
168168

169169
@flaky(max_runs=3)
170170
def test_embed_kernel_reentrant():
171-
"""IPython.embed_kernel() can be called multiple times"""
171+
"""ipykernel.embed.embed_kernel() can be called multiple times"""
172172
cmd = "\n".join(
173173
[
174-
"from IPython import embed_kernel",
174+
"from ipykernel.embed import embed_kernel",
175175
"count = 0",
176176
"def go():",
177177
" global count",

0 commit comments

Comments
 (0)