~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: Martin Pool
  • Date: 2005-07-06 04:45:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050706044521-7dacb2409cf7314c
- don't say runit when running tests under python2.3 dammit

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        super(TestBase, self).tearDown()
81
81
        self.log("%s teardown" % self.id())
82
82
        self.log('')
83
 
        
 
83
 
84
84
 
85
85
    def formcmd(self, cmd):
86
86
        if isinstance(cmd, basestring):
233
233
 
234
234
    def startTest(self, test):
235
235
        # TODO: Maybe show test.shortDescription somewhere?
236
 
        print >>self.out, '%-60.60s' % test.id(),
 
236
        what = test.id()
 
237
        # python2.3 has the bad habit of just "runit" for doctests
 
238
        if what == 'runit':
 
239
            what = test.shortDescription()
 
240
        
 
241
        print >>self.out, '%-60.60s' % what,
237
242
        self.out.flush()
238
243
        TestResult.startTest(self, test)
239
244