~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-11-02 07:29:02 UTC
  • mfrom: (2090.2.4 dash-o)
  • Revision ID: pqm@pqm.ubuntu.com-20061102072902-8b3d43db5d36ec5b
(mbp) #45205 fix errors when running under python -O

Show diffs side-by-side

added added

removed removed

Lines of Context:
2451
2451
 
2452
2452
class cmd_assert_fail(Command):
2453
2453
    """Test reporting of assertion failures"""
 
2454
    # intended just for use in testing
 
2455
 
2454
2456
    hidden = True
 
2457
 
2455
2458
    def run(self):
2456
 
        assert False, "always fails"
 
2459
        raise AssertionError("always fails")
2457
2460
 
2458
2461
 
2459
2462
class cmd_help(Command):