~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockdir.py

  • Committer: toto at example
  • Date: 2010-09-27 19:31:45 UTC
  • mfrom: (5050.17.27 2.2)
  • mto: This revision was merged to the branch mainline in revision 5448.
  • Revision ID: toto@example.com-20100927193145-bly1dw5wjd23hiwy
Merge lp:bzr/2.2 into trunk including fixes for #644855, #646133, #632387

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    LockNotHeld,
40
40
    )
41
41
from bzrlib.lockdir import LockDir
42
 
from bzrlib.tests import TestCaseWithTransport
 
42
from bzrlib.tests import (features, TestCaseWithTransport)
43
43
from bzrlib.trace import note
44
44
 
45
45
# These tests sometimes use threads to test the behaviour of lock files with
667
667
        ld1.unlock()
668
668
 
669
669
    def test_lock_permission(self):
 
670
        self.requireFeature(features.not_running_as_root)
670
671
        if not osutils.supports_posix_readonly():
671
672
            raise tests.TestSkipped('Cannot induce a permission failure')
672
673
        ld1 = self.get_lock()