~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lock.py

  • Committer: Martin Pool
  • Date: 2011-06-14 01:43:10 UTC
  • mto: This revision was merged to the branch mainline in revision 6002.
  • Revision ID: mbp@canonical.com-20110614014310-g5ww9c5gieo2cg5k
test_fifo_cache shouldn't have a knownfailure for something that's impossible

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
            self.f.close()
172
172
            self.f = None
173
173
 
 
174
    def __del__(self):
 
175
        if self.f:
 
176
            from warnings import warn
 
177
            warn("lock on %r not released" % self.f)
 
178
            self.unlock()
 
179
 
174
180
    def unlock(self):
175
181
        raise NotImplementedError()
176
182