From d5110016729e53791d7b82669b4ab8baa0fd7499 2016-07-06 21:57:15 From: Matthias Bussonnier Date: 2016-07-06 21:57:15 Subject: [PATCH] Readd warning at import time. --- 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]