Skip to content
Browse files

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.
  • Loading branch information...
1 parent 29e62c7 commit 9b5abe14af615a5abdcd75ccf63efad0511bf4b2 @bfroehle committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/lib/tests/test_deepreload.py
View
2 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)

0 comments on commit 9b5abe1

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