##// END OF EJS Templates
Another attempt at blacklisting collections for dreload...
Thomas Kluyver -
Show More
@@ -27,15 +27,10 b' def test_deepreload_numpy():'
27 # Standard exclusions:
27 # Standard exclusions:
28 'sys', 'os.path', builtin_mod_name, '__main__',
28 'sys', 'os.path', builtin_mod_name, '__main__',
29 # Test-related exclusions:
29 # Test-related exclusions:
30 'unittest', 'UserDict', '_collections_abc', 'tokenize'
30 'unittest', 'UserDict', '_collections_abc', 'tokenize',
31 'collections', 'collections.abc'
31 ]
32 ]
32
33
33 # `collections` builtin shall not be reloaded to avoid failure
34 # of lib.pretty collections related pretty printing.
35 # of course this make nose crash on Py3 because of Py 2.3 compat...
36 if not PY3:
37 exclude.append('collections')
38
39 dreload(numpy, exclude=exclude)
34 dreload(numpy, exclude=exclude)
40
35
41 def test_deepreload():
36 def test_deepreload():
General Comments 0
You need to be logged in to leave comments. Login now