##// END OF EJS Templates
Add test scripts for embed with compile flags.
Bradley M. Froehle -
Show More
@@ -0,0 +1,5 b''
1 """This tests that future compiler flags are passed to the embedded IPython."""
2 from __future__ import division
3 from IPython import embed
4 embed(banner1='', header='check 1/2 == 0.5 in Python 2')
5 embed(banner1='', header='check 1/2 = 0 in Python 2', compile_flags=0)
@@ -0,0 +1,6 b''
1 """This tests that future compiler flags are passed to the embedded IPython."""
2 from IPython import embed
3 import __future__
4 embed(banner1='', header='check 1/2 == 0 in Python 2')
5 embed(banner1='', header='check 1/2 == 0.5 in Python 2',
6 compile_flags=__future__.division.compiler_flag)
General Comments 0
You need to be logged in to leave comments. Login now