doctests use the wrong terminal width

Bug #595191 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

While running selftests, it seems that the DocTest adapter uses the wrong width for the terminal. I'm guessing it is using the raw 'terminal_width' as its cutoff point, when it should use 'terminal_width -1'. This is what I see:

$ bzr selftest
/ [1/24114 in 0s] bzrlib.doc.api.DocFileTest(C:\Users\jameinel\dev\bzr\alt_work\bzrlib\doc\api\branc
- [1/24114 in 0s] bzrlib.doc.api.DocFileTest(C:\Users\jameinel\dev\bzr\alt_work\bzrlib\doc\api\branc
\ [1/24114 in 0s] bzrlib.doc.api.DocFileTest(C:\Users\jameinel\dev\bzr\alt_work\bzrlib\doc\api\branc
| [1/24114 in 0s] bzrlib.doc.api.DocFileTest(C:\Users\jameinel\dev\bzr\alt_work\bzrlib\doc\api\branc
/ [1/24114 in 0s] bzrlib.doc.api.DocFileTest(C:\Users\jameinel\dev\bzr\alt_work\bzrlib\doc\api\branc
[87/24114 in 37s] blackbox.test_branch.TestBranchStacked.test_branch_stacked_from_smart_server

Note that the blackbox tests seem to be properly truncated (so as to not cause accidental wrap) but the DocFileTest cases all cause an artificial line-feed.

John A Meinel (jameinel)
Changed in bzr:
importance: Undecided → Low
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.