Permalink
Browse files

Tiny correction to test for interactiveshell scope.

  • Loading branch information...
1 parent 7a27135 commit a2e7cd46e71fc4b8f9849412b078c6e6c0fee5f2 @takluyver committed Nov 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/tests/test_interactiveshell.py
@@ -180,7 +180,7 @@ def test_global_ns(self):
"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)

0 comments on commit a2e7cd4

Please sign in to comment.