Ezio Melotti added the comment:

> As for output buffering, may be replace sys.stdout by file-like object
> which flushes its buffered content to original stdout on failure and
> discard it on success.

This is what the --buffer option is already supposed to do (I only found out 
about it thanks to this issue, the name is not very indicative of what it 
does...).  IIUC what Antoine is suggesting is having a more fine-grained 
control of the buffering, and the ability to set it from individual test cases 
rather than using a global command line flag or unittest.main(buffer=True) 
(which is only used while executing the test file directly).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22197>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to