##// 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 77 This will ensure that wrapped functions can still be well introspected via
78 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 81 DeprecationWarning, stacklevel=2)
82 82 import nose.tools
83 83
@@ -129,7 +129,7 b' def make_label_dec(label, ds=None):'
129 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 133 DeprecationWarning, stacklevel=2)
134 134 if isinstance(label, string_types):
135 135 labels = [label]
@@ -286,7 +286,7 b' def decorated_dummy(dec, name):'
286 286 import IPython.testing.decorators as dec
287 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 290 DeprecationWarning, stacklevel=2)
291 291 dummy = lambda: None
292 292 dummy.__name__ = name
@@ -320,7 +320,7 b' skip_if_no_x11 = skipif(_x11_skip_cond, _x11_skip_msg)'
320 320
321 321 # not a decorator itself, returns a dummy function to be used as setup
322 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 324 DeprecationWarning, stacklevel=2)
325 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 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 373 DeprecationWarning, stacklevel=2)
374 374 for cmd in commands:
375 375 if which(cmd):
General Comments 0
You need to be logged in to leave comments. Login now