~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Fix up display of reasons why tests were skipped.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
        self.stream.flush()
143
143
        unittest.TestResult.addSuccess(self, test)
144
144
 
145
 
    def addSkipped(self, test, skip_exception):
 
145
    def addSkipped(self, test, skip_excinfo):
146
146
        if self.showAll:
147
 
            self.stream.write(' SKIP %s' % self._elapsedTime())
148
 
            self.stream.write('     %s' % skip_exception)
 
147
            print >>self.stream, ' SKIP %s' % self._elapsedTime()
 
148
            print >>self.stream, '     %s' % skip_excinfo[1]
149
149
        elif self.dots:
150
150
            self.stream.write('S')
151
151
        self.stream.flush()