Show More
@@ -44,8 +44,7 b' def test_ipython_embed():' | |||||
44 | # run `python file_with_embed.py` |
|
44 | # run `python file_with_embed.py` | |
45 | cmd = [sys.executable, f.name] |
|
45 | cmd = [sys.executable, f.name] | |
46 |
|
46 | |||
47 |
|
|
47 | out, p = process_handler(cmd, lambda p: (p.communicate(_exit), p)) | |
48 | lambda p: (p.stdin.write(_exit), p.communicate()[:], p)) |
|
|||
49 | std = out[0].decode('UTF-8') |
|
48 | std = out[0].decode('UTF-8') | |
50 | nt.assert_equal(p.returncode, 0) |
|
49 | nt.assert_equal(p.returncode, 0) | |
51 | nt.assert_in('3 . 14', std) |
|
50 | nt.assert_in('3 . 14', std) |
General Comments 0
You need to be logged in to leave comments.
Login now