ID EN
Unittest

buffer

Python 3.11

If set to true, sys.stdout and sys.stderr will be buffered in between startTest() and stopTest() being called. Collected output will only be echoed onto the real sys.stdout and sys.stderr if the test fails or errors. Any output is also attached to the failure / error message.

Syntax

PYTHON
buffer

See Also

startTest() stopTest()