From 543193ee4f0a479d98b9fc8e9daff6f23343b7e3 2016-10-25 00:43:11 From: Paul Ivanov Date: 2016-10-25 00:43:11 Subject: [PATCH] restore test for __future__ imports Implementations of Python which do not observe PEP 401 may experience trouble with this test. --- diff --git a/IPython/core/tests/test_interactiveshell.py b/IPython/core/tests/test_interactiveshell.py index 6d28d5c..a350316 100644 --- a/IPython/core/tests/test_interactiveshell.py +++ b/IPython/core/tests/test_interactiveshell.py @@ -143,8 +143,9 @@ class InteractiveShellTestCase(unittest.TestCase): def test_future_flags(self): """Check that future flags are used for parsing code (gh-777)""" + ip.run_cell('from __future__ import barry_as_FLUFL') try: - ip.run_cell('prfunc_return_val = print(1,2, sep=" ")') + ip.run_cell('prfunc_return_val = 1 <> 2') assert 'prfunc_return_val' in ip.user_ns finally: # Reset compiler flags so we don't mess up other tests.