Message340398
When using "buffer = True" in a TextTestRunner, the test result behaviour doesn't change at all.
This is because TextTestRunner.stream is initialised using a decorator (_WritelnDecorator). When "buffer" is passed, the TestResult base class will try to redirect the stdout and stderr to 2 different io.StringIO objects. As the TextTestRunner.stream is initialised before that "redirection", all the "self.stream.write" calls will end using the original stream (stderr by default), and resulting in not buffering at all. |
|
Date |
User |
Action |
Args |
2019-04-17 14:24:22 | José Luis Segura Lucas | set | recipients:
+ José Luis Segura Lucas |
2019-04-17 14:24:22 | José Luis Segura Lucas | set | messageid: <1555511062.15.0.629417801049.issue36647@roundup.psfhosted.org> |
2019-04-17 14:24:22 | José Luis Segura Lucas | link | issue36647 messages |
2019-04-17 14:24:21 | José Luis Segura Lucas | create | |
|