[issue16739] texttestresult should decorate the stream with _WritelnDecorator

2020-05-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 2.7 ___ Python tracker ___ _

[issue16739] texttestresult should decorate the stream with _WritelnDecorator

2013-01-02 Thread Leo Arias
Leo Arias added the comment: What if we check if the stream has the writeln method? -- Added file: http://bugs.python.org/file28536/fix-16739-texttestresult_writeln-v2.patch ___ Python tracker

[issue16739] texttestresult should decorate the stream with _WritelnDecorator

2012-12-20 Thread Michael Foord
Michael Foord added the comment: TextTestResult could decorate a raw stream (and not redecorate an already decorated one). -- assignee: -> michael.foord nosy: +michael.foord ___ Python tracker ___

[issue16739] texttestresult should decorate the stream with _WritelnDecorator

2012-12-20 Thread Leo Arias
Leo Arias added the comment: A test with a fix. I'm not sure if this is the way to go, because the stream in TextTestRunner will be decorated twice. -- keywords: +patch Added file: http://bugs.python.org/file28379/fix-16739-texttestresult_writeln.patch ___

[issue16739] texttestresult should decorate the stream with _WritelnDecorator

2012-12-20 Thread Leo Arias
New submission from Leo Arias: Using the unittest's texttestresult with stdout and verbosity 2 will fail because that stream doesn't have a writeln method. File "/usr/lib/python2.7/unittest/suite.py", line 108, in run test(result) File "/usr/lib/python2.7/unittest/suite.py", line 70, in