/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_source.py

MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
359
359
                    return True
360
360
            return False
361
361
        badfiles = []
 
362
        assert_re = re.compile(r'\bassert\b')
362
363
        for fname, text in self.get_source_file_contents():
363
364
            if not self.is_our_code(fname):
364
365
                continue
365
 
            ast = parser.ast2tuple(parser.suite(''.join(text)))
 
366
            if not assert_re.search(text):
 
367
                continue
 
368
            ast = parser.ast2tuple(parser.suite(text))
366
369
            if search(ast):
367
370
                badfiles.append(fname)
368
371
        if badfiles: