~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-18 16:09:41 UTC
  • mto: (1185.1.32)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: john@arbash-meinel.com-20050918160940-ab133a1f31616576
Added test cases for handling bogus files.

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):