/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/builtins.py

  • Committer: Martin Pool
  • Date: 2006-10-29 01:44:29 UTC
  • mto: This revision was merged to the branch mainline in revision 2112.
  • Revision ID: mbp@sourcefrog.net-20061029014429-77497a4f933e6dfd
Fix some code which relies on assertions and breaks under python -O

Show diffs side-by-side

added added

removed removed

Lines of Context:
2412
2412
 
2413
2413
class cmd_assert_fail(Command):
2414
2414
    """Test reporting of assertion failures"""
 
2415
    # intended just for use in testing
 
2416
 
2415
2417
    hidden = True
 
2418
 
2416
2419
    def run(self):
2417
 
        assert False, "always fails"
 
2420
        raise AssertionError("always fails")
2418
2421
 
2419
2422
 
2420
2423
class cmd_help(Command):