Show More
@@ -0,0 +1,17 b'' | |||
|
1 | import nose.tools as nt | |
|
2 | ||
|
3 | from .test_embed_kernel import setup, teardown, setup_kernel | |
|
4 | ||
|
5 | TIMEOUT = 15 | |
|
6 | ||
|
7 | def test_ipython_start_kernel_userns(): | |
|
8 | cmd = ('from IPython import start_kernel\n' | |
|
9 | 'ns = {"tre": 123}\n' | |
|
10 | 'start_kernel(user_ns=ns)') | |
|
11 | ||
|
12 | with setup_kernel(cmd) as client: | |
|
13 | msg_id = client.object_info('tre') | |
|
14 | msg = client.get_shell_msg(block=True, timeout=TIMEOUT) | |
|
15 | content = msg['content'] | |
|
16 | assert content['found'] | |
|
17 | nt.assert_equal(content['string_form'], u'123') No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now