##// END OF EJS Templates
Tiny correction to test for interactiveshell scope.
Thomas Kluyver -
Show More
@@ -180,7 +180,7 b' class InteractiveShellTestCase(unittest.TestCase):'
180 180 "Code in functions must be able to access variables outside them."
181 181 ip = get_ipython()
182 182 ip.run_cell("a = 10")
183 ip.run_cell(("def f(x):"
183 ip.run_cell(("def f(x):\n"
184 184 " return x + a"))
185 185 ip.run_cell("b = f(12)")
186 186 self.assertEqual(ip.user_ns["b"], 22)
General Comments 0
You need to be logged in to leave comments. Login now