__init__(self,
stream=sys.stderr,
descriptions=True,
verbosity=1,
failfast=False,
buffer=False,
resultclass=None,
timing=False,
io_capture=True)
(Constructor)
| source code
|
Initialise the class, storing the timing flag.
- Parameters:
stream (writable object) - The IO stream to write all output to.
descriptions (bool) - A flag which if True will cause the test description to be
printed out, when the verbosity is > 1.
verbosity (int) - The verbosity level.
timing (bool) - A flag which if True will enable timing of individual tests.
io_capture (bool) - A flag which if True will cause all IO to be captured and only
printed out for failing or error tests.
- Overrides:
unittest.runner.TextTestRunner.__init__
|