~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: Martin Pool
  • Date: 2005-09-18 01:02:11 UTC
  • mto: (1185.8.2) (974.1.91)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: mbp@sourcefrog.net-20050918010211-8eac3eb2815613ea
- Show short test descriptions if any in verbose runs

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    def startTest(self, test):
90
90
        unittest.TestResult.startTest(self, test)
91
91
        # TODO: Maybe show test.shortDescription somewhere?
92
 
        what = test.id()
93
 
        # python2.3 has the bad habit of just "runit" for doctests
94
 
        if what == 'runit':
95
 
            what = test.shortDescription()
 
92
        what = test.shortDescription() or test.id()        
96
93
        if self.showAll:
97
 
            self.stream.write('%-60.60s' % what)
 
94
            self.stream.write('%-70.70s' % what)
98
95
        self.stream.flush()
99
96
 
100
97
    def addError(self, test, err):