Show More
@@ -20,7 +20,7 b' from IPython.utils.tempdir import NamedFileInTemporaryDirectory' | |||
|
20 | 20 | # Tests |
|
21 | 21 | #----------------------------------------------------------------------------- |
|
22 | 22 | |
|
23 | _sample_embed = """ | |
|
23 | _sample_embed = b""" | |
|
24 | 24 | from __future__ import print_function |
|
25 | 25 | import IPython |
|
26 | 26 | |
@@ -33,12 +33,12 b' IPython.embed()' | |||
|
33 | 33 | print('bye!') |
|
34 | 34 | """ |
|
35 | 35 | |
|
36 |
_exit = "exit\r" |
|
|
36 | _exit = b"exit\r" | |
|
37 | 37 | |
|
38 | 38 | def test_ipython_embed(): |
|
39 | 39 | """test that `IPython.embed()` works""" |
|
40 | 40 | with NamedFileInTemporaryDirectory('file_with_embed.py') as f: |
|
41 |
f.write(_sample_embed |
|
|
41 | f.write(_sample_embed) | |
|
42 | 42 | f.flush() |
|
43 | 43 | |
|
44 | 44 | # run `python file_with_embed.py` |
General Comments 0
You need to be logged in to leave comments.
Login now