##// END OF EJS Templates
rewrite __future__ embed tests to use PEP 401
Paul Ivanov -
Show More
@@ -0,0 +1,5 b''
1 """This tests that future compiler flags are passed to the embedded IPython."""
2 from __future__ import barry_as_FLUFL
3 from IPython import embed
4 embed(banner1='', header='check 1 <> 2 == True')
5 embed(banner1='', header='check 1 <> 2 cause SyntaxError', compile_flags=0)
@@ -1,6 +1,6 b''
1 """This tests that future compiler flags are passed to the embedded IPython."""
1 """This tests that future compiler flags are passed to the embedded IPython."""
2 from IPython import embed
2 from IPython import embed
3 import __future__
3 import __future__
4 embed(banner1='', header='check 1/2 == 0 in Python 2')
4 embed(banner1='', header='check 1 <> 2 cause SyntaxError')
5 embed(banner1='', header='check 1/2 == 0.5 in Python 2',
5 embed(banner1='', header='check 1 <> 2 == True',
6 compile_flags=__future__.division.compiler_flag)
6 compile_flags=__future__.barry_as_FLUFL.compiler_flag)
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now