Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes for tests.

  • Loading branch information...
commit cccd3b7bf5edeca91141e0701bc6fd96e55ecb8f 1 parent 6e69f60
@takluyver authored
View
5 IPython/core/tests/test_iplib.py
@@ -28,7 +28,6 @@
# Test functions
#-----------------------------------------------------------------------------
-@dec.parametric
def test_reset():
"""reset must clear most namespaces."""
# The number of variables in the private user_ns_hidden is not zero, but it
@@ -49,8 +48,8 @@ def test_reset():
# Finally, check that all namespaces have only as many variables as we
# expect to find in them:
- yield nt.assert_equals(len(ip.user_ns), nvars_expected)
- yield nt.assert_equals(len(ip.user_ns_hidden), nvars_hidden)
+ nt.assert_equals(len(ip.user_ns), nvars_user_ns)
+ nt.assert_equals(len(ip.user_ns_hidden), nvars_hidden)
# Tests for reporting of exceptions in various modes, handling of SystemExit,
View
1  IPython/testing/globalipapp.py
@@ -190,7 +190,6 @@ def start_ipython():
# Create and initialize our test-friendly IPython instance.
shell = TerminalInteractiveShell.instance(config=config,
user_ns=ipnsdict(),
- user_global_ns={}
)
# A few more tweaks needed for playing nicely with doctests...
Please sign in to comment.
Something went wrong with that request. Please try again.