##// END OF EJS Templates
Doc changes describing the fixes for bug #274067
Doc changes describing the fixes for bug #274067

File last commit:

r1868:2f50ff6b
r1912:371d13de merge
Show More
test_iplib.py
17 lines | 517 B | text/x-python | PythonLexer
Fernando Perez
Fix https://bugs.launchpad.net/ipython/+bug/239054...
r1859 """Tests for the key iplib module, where the main ipython class is defined.
"""
import nose.tools as nt
Fernando Perez
Fix problems with multiline doctests and add docs about testing....
r1868
Fernando Perez
Fix https://bugs.launchpad.net/ipython/+bug/239054...
r1859 def test_reset():
"""reset must clear most namespaces."""
ip = _ip.IP
ip.reset() # first, it should run without error
# Then, check that most namespaces end up empty
for ns in ip.ns_refs_table:
if ns is ip.user_ns:
# The user namespace is reset with some data, so we can't check for
# it being empty
continue
nt.assert_equals(len(ns),0)