~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-03-18 01:17:18 UTC
  • mfrom: (3287.4.4 test-cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20080318011718-41sghr89tjcdpzc7
(mbp) Tests should not call or reimplement reduceLockdirTimeout when it's done in a base class

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
444
444
        bound = master.sprout('bound')
445
445
        wt = bound.open_workingtree()
446
446
        wt.branch.set_bound_location(os.path.realpath('master'))
447
 
 
448
 
        orig_default = lockdir._DEFAULT_TIMEOUT_SECONDS
449
447
        master_branch.lock_write()
450
448
        try:
451
 
            lockdir._DEFAULT_TIMEOUT_SECONDS = 1
452
449
            self.assertRaises(LockContention, wt.commit, 'silly')
453
450
        finally:
454
 
            lockdir._DEFAULT_TIMEOUT_SECONDS = orig_default
455
451
            master_branch.unlock()
456
452
 
457
453
    def test_commit_bound_merge(self):