def xmlrunner_wrapper(output):
 def _runner(*args, **kwargs):
  kwargs[u'output'] = output
  return xmlrunner.XMLTestRunner(*args, **kwargs)
 return _runner

def xmlrunner_wrapper ( output ) : def _runner ( * args , ** kwargs ) : kwargs [ u'output' ] = output return xmlrunner . XMLTestRunner ( * args , ** kwargs ) return _runner
convenience wrapper to keep method signature unchanged for xmltestrunner and texttestrunner .