Show More
@@ -10,7 +10,7 b' import os' | |||||
10 | import nose.tools as nt |
|
10 | import nose.tools as nt | |
11 |
|
11 | |||
12 | from IPython.testing import decorators as dec |
|
12 | from 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 | |
14 | from IPython.utils.syspathcontext import prepended_to_syspath |
|
14 | from IPython.utils.syspathcontext import prepended_to_syspath | |
15 | from IPython.utils.tempdir import TemporaryDirectory |
|
15 | from IPython.utils.tempdir import TemporaryDirectory | |
16 | from IPython.lib.deepreload import reload as dreload |
|
16 | from IPython.lib.deepreload import reload as dreload | |
@@ -29,6 +29,13 b' def test_deepreload_numpy():' | |||||
29 | # Test-related exclusions: |
|
29 | # Test-related exclusions: | |
30 | 'unittest', 'UserDict', |
|
30 | 'unittest', 'UserDict', | |
31 | ] |
|
31 | ] | |
|
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 | ||||
32 | dreload(numpy, exclude=exclude) |
|
39 | dreload(numpy, exclude=exclude) | |
33 |
|
40 | |||
34 | def test_deepreload(): |
|
41 | def test_deepreload(): |
General Comments 0
You need to be logged in to leave comments.
Login now