/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_lock/test_temporary_write_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:
58
58
            try:
59
59
                self.assertRaises(errors.LockContention,
60
60
                                  self.write_lock, 'a-file')
61
 
                self.assertRaises(errors.LockContention,
62
 
                                  self.read_lock, 'a-file')
 
61
                # TODO: jam 20070319 fcntl read locks are not currently fully
 
62
                #       mutually exclusive with write locks. This will be fixed
 
63
                #       in the next release.
 
64
                # self.assertRaises(errors.LockContention,
 
65
                #                   self.read_lock, 'a-file')
63
66
            finally:
64
67
                a_lock = t_write_lock.restore_read_lock()
65
68
            # Now we only have a read lock, so we should be able to grab