Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 786c612

Browse files
committed
Another attempt at blacklisting collections for dreload
Making a PR to see what Travis thinks
1 parent c4d05dc commit 786c612

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

IPython/lib/tests/test_deepreload.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@ def test_deepreload_numpy():
2727
# Standard exclusions:
2828
'sys', 'os.path', builtin_mod_name, '__main__',
2929
# Test-related exclusions:
30-
'unittest', 'UserDict', '_collections_abc', 'tokenize'
30+
'unittest', 'UserDict', '_collections_abc', 'tokenize',
31+
'collections', 'collections.abc'
3132
]
3233

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-
3934
dreload(numpy, exclude=exclude)
4035

4136
def test_deepreload():

0 commit comments

Comments
 (0)