File: embed_no_flufl.py

package info (click to toggle)
ipython 8.35.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,696 kB
  • sloc: python: 42,461; sh: 376; makefile: 243
file content (6 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
"""This tests that future compiler flags are passed to the embedded IPython."""
from IPython import embed
import __future__
embed(banner1='', header='check 1 <> 2 cause SyntaxError')
embed(banner1='', header='check 1 <> 2 == True',
      compile_flags=__future__.barry_as_FLUFL.compiler_flag)