~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_lock/test_lock.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-19 21:45:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: john@arbash-meinel.com-20070319214503-1t048spp6n2tbro7
Disable read locks blocking on write locks.
This requires some small test updates to disable that sort of check.
But it should allow the rest of the test suite to pass on non-win32

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        a_lock = self.write_lock('a-file')
114
114
        a_lock.unlock()
115
115
 
116
 
    def test_write_then_read_excludes(self):
 
116
    # TODO: jam 20070319 fcntl read locks are not currently fully
 
117
    #       mutually exclusive with write locks. This will be fixed
 
118
    #       in the next release.
 
119
    def _disabled_test_write_then_read_excludes(self):
117
120
        """If a file is write-locked, taking out a read lock should fail.
118
121
 
119
122
        The file is exclusively owned by the write lock, so we shouldn't be