def subtest_nocleanup(function):
 def wrapped(self, *args, **kwds):
  self._cleanup = False
  self.decored()
  result = function(self, *args, **kwds)
  return result
 wrapped.func_name = function.func_name
 return wrapped

def subtest_nocleanup ( function ) : def wrapped ( self , * args , ** kwds ) : self . _cleanup = False self . decored ( ) result = function ( self , * args , ** kwds ) return result wrapped . func_name = function . func_name return wrapped
decorator used to disable cleanup function .