##// END OF EJS Templates
restore test for __future__ imports...
Paul Ivanov -
Show More
@@ -143,8 +143,9 b' class InteractiveShellTestCase(unittest.TestCase):'
143
143
144 def test_future_flags(self):
144 def test_future_flags(self):
145 """Check that future flags are used for parsing code (gh-777)"""
145 """Check that future flags are used for parsing code (gh-777)"""
146 ip.run_cell('from __future__ import barry_as_FLUFL')
146 try:
147 try:
147 ip.run_cell('prfunc_return_val = print(1,2, sep=" ")')
148 ip.run_cell('prfunc_return_val = 1 <> 2')
148 assert 'prfunc_return_val' in ip.user_ns
149 assert 'prfunc_return_val' in ip.user_ns
149 finally:
150 finally:
150 # Reset compiler flags so we don't mess up other tests.
151 # Reset compiler flags so we don't mess up other tests.
General Comments 0
You need to be logged in to leave comments. Login now