~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/lock_helpers.py

  • Committer: Robert Collins
  • Date: 2009-04-15 05:39:38 UTC
  • mto: This revision was merged to the branch mainline in revision 4292.
  • Revision ID: robertc@robertcollins.net-20090415053938-9w379adk8993sq1q
Hopefully fix locking tests to match the new code (and still be good statements of intent).

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        self.__dict__['_allow_read'] = True
45
45
        self.__dict__['_allow_unlock'] = True
46
46
 
 
47
    def __eq__(self, other):
 
48
        # Branch objects look for controlfiles == repo.controlfiles.
 
49
        if type(other) == LockWrapper:
 
50
            return self._other == other._other
 
51
        return False
 
52
 
47
53
    def __getattr__(self, attr):
48
54
        return getattr(self._other, attr)
49
55