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

Skip to content

Commit 3aa20a3

Browse files
committed
Add filter warnings for Traitlets 4.1 now that it's out.
1 parent 26756ac commit 3aa20a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

IPython/testing/iptest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151
# ignore some warnings from traitlets until 6.0
5252
warnings.filterwarnings('ignore', message='.*on_trait_change is deprecated: use observe instead.*')
5353
warnings.filterwarnings('ignore', message='.*was set from the constructor.*', category=Warning, module='IPython.*')
54+
warnings.filterwarnings('ignore', message='.*use the instance .help string directly, like x.help.*', category=DeprecationWarning, module='IPython.*')
5455
else :
55-
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')
56+
warnings.warn('iptest has been filtering out for Traitlets warnings messages, for 2 minor versions (since 4.x), please consider updating to use new API')
5657

5758
if version_info < (6,):
5859
# nose.tools renames all things from `camelCase` to `snake_case` which raise an

0 commit comments

Comments
 (0)