From a2e7cd46e71fc4b8f9849412b078c6e6c0fee5f2 2011-11-27 02:19:01 From: Thomas Kluyver Date: 2011-11-27 02:19:01 Subject: [PATCH] Tiny correction to test for interactiveshell scope. --- diff --git a/IPython/core/tests/test_interactiveshell.py b/IPython/core/tests/test_interactiveshell.py index 30496f6..a5d3c9f 100644 --- a/IPython/core/tests/test_interactiveshell.py +++ b/IPython/core/tests/test_interactiveshell.py @@ -180,7 +180,7 @@ class InteractiveShellTestCase(unittest.TestCase): "Code in functions must be able to access variables outside them." ip = get_ipython() ip.run_cell("a = 10") - ip.run_cell(("def f(x):" + ip.run_cell(("def f(x):\n" " return x + a")) ip.run_cell("b = f(12)") self.assertEqual(ip.user_ns["b"], 22)