diff --git a/IPython/lib/inputhook.py b/IPython/lib/inputhook.py index c181005..98d8c2c 100644 --- a/IPython/lib/inputhook.py +++ b/IPython/lib/inputhook.py @@ -21,6 +21,11 @@ from distutils.version import LooseVersion as V from warnings import warn + +warn("`IPython.lib.inputhook` is deprecated since IPython 5.0 and will be removed in future versions.", + DeprecationWarning, stacklevel=2) + + #----------------------------------------------------------------------------- # Constants #----------------------------------------------------------------------------- diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index 7bfa649..b2f19a4 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -364,9 +364,6 @@ def run_iptest(): if '--with-xunit' in sys.argv and not hasattr(Xunit, 'orig_addError'): monkeypatch_xunit() - warnings.filterwarnings('ignore', - 'This will be removed soon. Use IPython.testing.util instead') - arg1 = sys.argv[1] if arg1 in test_sections: section = test_sections[arg1]