示例#1
0
 def __init__(
     self,
     reporterFactory,
     mode=None,
     logfile="test.log",
     stream=sys.stdout,
     profile=False,
     tracebackFormat="default",
     realTimeErrors=False,
     uncleanWarnings=False,
     workingDirectory=None,
     forceGarbageCollection=False,
     debugger=None,
     exitFirst=False,
 ):
     self.reporterFactory = reporterFactory
     self.logfile = logfile
     self.mode = mode
     self.stream = stream
     self.tbformat = tracebackFormat
     self.rterrors = realTimeErrors
     self.uncleanWarnings = uncleanWarnings
     self._result = None
     self.workingDirectory = workingDirectory or "_trial_temp"
     self._logFileObserver = None
     self._logFileObject = None
     self._forceGarbageCollection = forceGarbageCollection
     self.debugger = debugger
     self._exitFirst = exitFirst
     if profile:
         self.run = util.profiled(self.run, "profile.data")
示例#2
0
 def __init__(self, reporterFactory,
              mode=None,
              logfile='test.log',
              stream=sys.stdout,
              profile=False,
              tracebackFormat='default',
              realTimeErrors=False,
              uncleanWarnings=False,
              workingDirectory=None,
              forceGarbageCollection=False,
              debugger=None):
     self.reporterFactory = reporterFactory
     self.logfile = logfile
     self.mode = mode
     self.stream = stream
     self.tbformat = tracebackFormat
     self.rterrors = realTimeErrors
     self.uncleanWarnings = uncleanWarnings
     self._result = None
     self.workingDirectory = workingDirectory or '_trial_temp'
     self._logFileObserver = None
     self._logFileObject = None
     self._forceGarbageCollection = forceGarbageCollection
     self.debugger = debugger
     if profile:
         self.run = util.profiled(self.run, 'profile.data')
示例#3
0
 def __init__(self,
              reporterFactory,
              mode=None,
              logfile='test.log',
              stream=sys.stdout,
              profile=False,
              tracebackFormat='default',
              realTimeErrors=False,
              uncleanWarnings=False,
              workingDirectory=None,
              forceGarbageCollection=False):
     self.reporterFactory = reporterFactory
     self.logfile = logfile
     self.mode = mode
     self.stream = stream
     self.tbformat = tracebackFormat
     self.rterrors = realTimeErrors
     self.uncleanWarnings = uncleanWarnings
     self._result = None
     self.workingDirectory = workingDirectory or '_trial_temp'
     self._logFileObserver = None
     self._logFileObject = None
     self._forceGarbageCollection = forceGarbageCollection
     if profile:
         self.run = util.profiled(self.run, 'profile.data')
示例#4
0
 def __init__(self, reporterFactory,
              mode=None,
              logfile='test.log',
              stream=sys.stdout,
              profile=False,
              tracebackFormat='default',
              realTimeErrors=False,
              workingDirectory=None):
     self.reporterFactory = reporterFactory
     self.logfile = logfile
     self.mode = mode
     self.stream = stream
     self.tbformat = tracebackFormat
     self.rterrors = realTimeErrors
     self._result = None
     self.workingDirectory = workingDirectory or '_trial_temp'
     if profile:
         self.run = util.profiled(self.run, 'profile.data')
示例#5
0
 def __init__(self,
              reporterFactory,
              mode=None,
              logfile='test.log',
              stream=sys.stdout,
              profile=False,
              tracebackFormat='default',
              realTimeErrors=False,
              workingDirectory=None):
     self.reporterFactory = reporterFactory
     self.logfile = logfile
     self.mode = mode
     self.stream = stream
     self.tbformat = tracebackFormat
     self.rterrors = realTimeErrors
     self._result = None
     self.workingDirectory = workingDirectory or '_trial_temp'
     if profile:
         self.run = util.profiled(self.run, 'profile.data')