diff --git a/IPython/testing/decorators.py b/IPython/testing/decorators.py index 7156469..45c26ea 100644 --- a/IPython/testing/decorators.py +++ b/IPython/testing/decorators.py @@ -77,7 +77,7 @@ def apply_wrapper(wrapper, func): This will ensure that wrapped functions can still be well introspected via IPython, for example. """ - warnings.warn("The function `apply_wrapper` is deprecated and might be removed in IPython 5.0", + warnings.warn("The function `apply_wrapper` is deprecated since IPython 4.0", DeprecationWarning, stacklevel=2) import nose.tools @@ -129,7 +129,7 @@ def make_label_dec(label, ds=None): True """ - warnings.warn("The function `make_label_dec` is deprecated and might be removed in IPython 5.0", + warnings.warn("The function `make_label_dec` is deprecated since IPython 4.0", DeprecationWarning, stacklevel=2) if isinstance(label, string_types): labels = [label] @@ -286,7 +286,7 @@ def decorated_dummy(dec, name): import IPython.testing.decorators as dec setup = dec.decorated_dummy(dec.skip_if_no_x11, __name__) """ - warnings.warn("The function `decorated_dummy` is deprecated and might be removed in IPython 5.0", + warnings.warn("The function `decorated_dummy` is deprecated since IPython 4.0", DeprecationWarning, stacklevel=2) dummy = lambda: None dummy.__name__ = name @@ -320,7 +320,7 @@ skip_if_no_x11 = skipif(_x11_skip_cond, _x11_skip_msg) # not a decorator itself, returns a dummy function to be used as setup def skip_file_no_x11(name): - warnings.warn("The function `skip_file_no_x11` is deprecated and might be removed in IPython 5.0", + warnings.warn("The function `skip_file_no_x11` is deprecated since IPython 4.0", DeprecationWarning, stacklevel=2) return decorated_dummy(skip_if_no_x11, name) if _x11_skip_cond else None @@ -369,7 +369,7 @@ def onlyif_any_cmd_exists(*commands): """ Decorator to skip test unless at least one of `commands` is found. """ - warnings.warn("The function `onlyif_any_cmd_exists` is deprecated and might be removed in IPython 5.0", + warnings.warn("The function `onlyif_any_cmd_exists` is deprecated since IPython 4.0", DeprecationWarning, stacklevel=2) for cmd in commands: if which(cmd):