[rfc] why selftest -v don't use osutils.terminal_width() for formatting output?

John Arbash Meinel john at arbash-meinel.com
Mon Dec 11 19:14:20 GMT 2006


Alexander Belchenko wrote:
> In bzr 0.12 and early 'selftest -v' use osutils.terminal_width() to
> format report. Now it's gone.
> 
> The line in question is:
> 
> self.stream.write(self._ellipsize_to_right(name, 60))
> 
> in method report_test_start() in class VerboseTestResult.
> This change introduced by
> revid:mbp at sourcefrog.net-20061029065311-c0db791096b06831.
> 
> I think using hardwired value 60 to format report is not good.
> But probably Martin has some strong reasons to do this?
> 
> I'd like to switch hardwired 60 to (osutils.terminal_width()-20).
> 
> Alexander
> 

Sounds reasonable to me.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061211/4e677309/attachment.pgp 


More information about the bazaar mailing list