File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import nose .tools as nt
1111
1212from IPython .testing import decorators as dec
13- from IPython .utils .py3compat import builtin_mod_name
13+ from IPython .utils .py3compat import builtin_mod_name , PY3
1414from IPython .utils .syspathcontext import prepended_to_syspath
1515from IPython .utils .tempdir import TemporaryDirectory
1616from IPython .lib .deepreload import reload as dreload
@@ -29,6 +29,13 @@ def test_deepreload_numpy():
2929 # Test-related exclusions:
3030 'unittest' , 'UserDict' ,
3131 ]
32+
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+
3239 dreload (numpy , exclude = exclude )
3340
3441def test_deepreload ():
You can’t perform that action at this time.
0 commit comments