~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_source.py

Start going through the test failures.

It did catch 1 case where there should have been an exception clause.
So far, though, it doesn't seem super useful, and has some false
positives...

Show diffs side-by-side

added added

removed removed

Lines of Context:
405
405
            error_msg.extend(('', ''))
406
406
        if missing_except:
407
407
            error_msg.append('The following functions have fixed return types,'
408
 
                             ' but no except clause. Either add an except'
409
 
                             ' or append "# no except".')
 
408
                             ' but no except clause.')
 
409
            error_msg.append(' Either add an except or append "# no except".')
410
410
            for fname, func in missing_except:
411
411
                error_msg.append('%s:%s' % (fname, func))
412
412
            error_msg.extend(('', ''))