def uses_deprecated(*messages):
 @decorator
 def decorate(fn, *args, **kw):
  with expect_deprecated(*messages):
   return fn(*args, **kw)
 return decorate

def uses_deprecated ( * messages ) : @ decorator def decorate ( fn , * args , ** kw ) : with expect_deprecated ( * messages ) : return fn ( * args , ** kw ) return decorate
mark a test as immune from fatal deprecation warnings .