~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testsweet.py

  • Committer: Robert Collins
  • Date: 2005-09-27 06:15:35 UTC
  • mto: (1092.3.4)
  • mto: This revision was merged to the branch mainline in revision 1391.
  • Revision ID: robertc@robertcollins.net-20050927061535-6321f7191439d108
print test case exceptions after the test log

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        for test, err in errors:
114
114
            self.stream.writeln(self.separator1)
115
115
            self.stream.writeln("%s: %s" % (flavour,self.getDescription(test)))
116
 
            self.stream.writeln(self.separator2)
117
 
            self.stream.writeln("%s" % err)
118
116
            if hasattr(test, '_get_log'):
119
117
                self.stream.writeln()
120
118
                self.stream.writeln('log from this test:')
121
119
                print >>self.stream, test._get_log()
 
120
            self.stream.writeln(self.separator2)
 
121
            self.stream.writeln("%s" % err)
122
122
 
123
123
 
124
124
class TextTestRunner(unittest.TextTestRunner):