def ignore_deprecation_warnings(func):
 def wrapper(*args, **kw):
  with check_warnings(quiet=True, *_deprecations):
   return func(*args, **kw)
 return wrapper

def ignore_deprecation_warnings ( func ) : def wrapper ( * args , ** kw ) : with check_warnings ( quiet = True , * _deprecations ) : return func ( * args , ** kw ) return wrapper
ignore deprecation warnings for the wrapped testcase or test method this is useful as the test runner can be set to raise an exception on a deprecation warning .