Show More
@@ -34,6 +34,7 b' from nose.core import TestProgram' | |||||
34 | from nose.plugins import Plugin |
|
34 | from nose.plugins import Plugin | |
35 | from nose.util import safe_str |
|
35 | from nose.util import safe_str | |
36 |
|
36 | |||
|
37 | from IPython import version_info | |||
37 | from IPython.utils.py3compat import bytes_to_str |
|
38 | from IPython.utils.py3compat import bytes_to_str | |
38 | from IPython.utils.importstring import import_item |
|
39 | from IPython.utils.importstring import import_item | |
39 | from IPython.testing.plugin.ipdoctest import IPythonDoctest |
|
40 | from IPython.testing.plugin.ipdoctest import IPythonDoctest | |
@@ -58,6 +59,24 b" warnings.filterwarnings('ignore', 'the sha module is deprecated'," | |||||
58 | warnings.filterwarnings('ignore', 'wxPython/wxWidgets release number mismatch', |
|
59 | warnings.filterwarnings('ignore', 'wxPython/wxWidgets release number mismatch', | |
59 | UserWarning) |
|
60 | UserWarning) | |
60 |
|
61 | |||
|
62 | # Enable printing all warnings raise by IPython's modules | |||
|
63 | warnings.filterwarnings('default', message='.*', category=Warning, module='IPy.*') | |||
|
64 | ||||
|
65 | ||||
|
66 | if version_info < (6,): | |||
|
67 | # ignore some warnings from traitlets until 6.0 | |||
|
68 | warnings.filterwarnings('ignore', message='.*on_trait_change is deprecated: use observe instead.*') | |||
|
69 | warnings.filterwarnings('ignore', message='.*was set from the constructor.*', category=Warning, module='IPython.*') | |||
|
70 | else : | |||
|
71 | warnings.warn('iptest has been filtering out for Traitlets warnings messages, for 2 major versions (since 4.x), please consider updating to use new API') | |||
|
72 | ||||
|
73 | if version_info < (6,): | |||
|
74 | # nose.tools renames all things from `camelCase` to `snake_case` which raise an | |||
|
75 | # warning with the runner they also import from standard import library. (as of Dec 2015) | |||
|
76 | # Ignore, let's revisit that in a couple of years for IPython 6. | |||
|
77 | warnings.filterwarnings('ignore', message='.*Please use assertEqual instead', category=Warning, module='IPython.*') | |||
|
78 | ||||
|
79 | ||||
61 | # ------------------------------------------------------------------------------ |
|
80 | # ------------------------------------------------------------------------------ | |
62 | # Monkeypatch Xunit to count known failures as skipped. |
|
81 | # Monkeypatch Xunit to count known failures as skipped. | |
63 | # ------------------------------------------------------------------------------ |
|
82 | # ------------------------------------------------------------------------------ |
General Comments 0
You need to be logged in to leave comments.
Login now