From 9b5abe14af615a5abdcd75ccf63efad0511bf4b2 2012-04-23 01:08:53 From: Bradley M. Froehle Date: 2012-04-23 01:08:53 Subject: [PATCH] Exclude UserDict when deep reloading NumPy. This prevents another test failure in IPython.lib.tests.test_irunner_pylab_magic:: Traceback (most recent call last): ... File "/usr/lib/python2.7/weakref.py", line 53, in __init__ UserDict.UserDict.__init__(self, *args, **kw) TypeError: unbound method __init__() must be called with UserDict instance as first argument (got WeakValueDictionary instance instead) Closes #1636. --- diff --git a/IPython/lib/tests/test_deepreload.py b/IPython/lib/tests/test_deepreload.py index e8d8e05..57b938e 100644 --- a/IPython/lib/tests/test_deepreload.py +++ b/IPython/lib/tests/test_deepreload.py @@ -27,7 +27,7 @@ def test_deepreload_numpy(): # Standard exclusions: 'sys', 'os.path', '__builtin__', '__main__', # Test-related exclusions: - 'unittest', + 'unittest', 'UserDict', ] dreload(numpy, exclude=exclude)