~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_source.py

  • Committer: Martin Pool
  • Date: 2008-04-24 07:38:09 UTC
  • mto: This revision was merged to the branch mainline in revision 3415.
  • Revision ID: mbp@sourcefrog.net-20080424073809-ueh0p57961v1q5cs
Treat assert statements in our code as a hard error

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
            if search(ast):
302
302
                badfiles.append(fname)
303
303
        if badfiles:
304
 
            raise KnownFailure(
 
304
            self.fail(
305
305
                "these files contain an assert statement and should not:\n%s"
306
306
                % '\n'.join(badfiles))