Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Tiny correction to test for interactiveshell scope.

  • Loading branch information...
commit a2e7cd46e71fc4b8f9849412b078c6e6c0fee5f2 1 parent 7a27135
Thomas Kluyver authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  IPython/core/tests/test_interactiveshell.py
2  IPython/core/tests/test_interactiveshell.py
@@ -180,7 +180,7 @@ def test_global_ns(self):
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)

0 comments on commit a2e7cd4

Please sign in to comment.
Something went wrong with that request. Please try again.