##// END OF EJS Templates
Rephrase deprecation warning since 5.0 has been released.
Matthias Bussonnier -
Show More
@@ -77,7 +77,7 b' def apply_wrapper(wrapper, func):'
77 This will ensure that wrapped functions can still be well introspected via
77 This will ensure that wrapped functions can still be well introspected via
78 IPython, for example.
78 IPython, for example.
79 """
79 """
80 warnings.warn("The function `apply_wrapper` is deprecated and might be removed in IPython 5.0",
80 warnings.warn("The function `apply_wrapper` is deprecated since IPython 4.0",
81 DeprecationWarning, stacklevel=2)
81 DeprecationWarning, stacklevel=2)
82 import nose.tools
82 import nose.tools
83
83
@@ -129,7 +129,7 b' def make_label_dec(label, ds=None):'
129 True
129 True
130 """
130 """
131
131
132 warnings.warn("The function `make_label_dec` is deprecated and might be removed in IPython 5.0",
132 warnings.warn("The function `make_label_dec` is deprecated since IPython 4.0",
133 DeprecationWarning, stacklevel=2)
133 DeprecationWarning, stacklevel=2)
134 if isinstance(label, string_types):
134 if isinstance(label, string_types):
135 labels = [label]
135 labels = [label]
@@ -286,7 +286,7 b' def decorated_dummy(dec, name):'
286 import IPython.testing.decorators as dec
286 import IPython.testing.decorators as dec
287 setup = dec.decorated_dummy(dec.skip_if_no_x11, __name__)
287 setup = dec.decorated_dummy(dec.skip_if_no_x11, __name__)
288 """
288 """
289 warnings.warn("The function `decorated_dummy` is deprecated and might be removed in IPython 5.0",
289 warnings.warn("The function `decorated_dummy` is deprecated since IPython 4.0",
290 DeprecationWarning, stacklevel=2)
290 DeprecationWarning, stacklevel=2)
291 dummy = lambda: None
291 dummy = lambda: None
292 dummy.__name__ = name
292 dummy.__name__ = name
@@ -320,7 +320,7 b' skip_if_no_x11 = skipif(_x11_skip_cond, _x11_skip_msg)'
320
320
321 # not a decorator itself, returns a dummy function to be used as setup
321 # not a decorator itself, returns a dummy function to be used as setup
322 def skip_file_no_x11(name):
322 def skip_file_no_x11(name):
323 warnings.warn("The function `skip_file_no_x11` is deprecated and might be removed in IPython 5.0",
323 warnings.warn("The function `skip_file_no_x11` is deprecated since IPython 4.0",
324 DeprecationWarning, stacklevel=2)
324 DeprecationWarning, stacklevel=2)
325 return decorated_dummy(skip_if_no_x11, name) if _x11_skip_cond else None
325 return decorated_dummy(skip_if_no_x11, name) if _x11_skip_cond else None
326
326
@@ -369,7 +369,7 b' def onlyif_any_cmd_exists(*commands):'
369 """
369 """
370 Decorator to skip test unless at least one of `commands` is found.
370 Decorator to skip test unless at least one of `commands` is found.
371 """
371 """
372 warnings.warn("The function `onlyif_any_cmd_exists` is deprecated and might be removed in IPython 5.0",
372 warnings.warn("The function `onlyif_any_cmd_exists` is deprecated since IPython 4.0",
373 DeprecationWarning, stacklevel=2)
373 DeprecationWarning, stacklevel=2)
374 for cmd in commands:
374 for cmd in commands:
375 if which(cmd):
375 if which(cmd):
General Comments 0
You need to be logged in to leave comments. Login now