~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_flush.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-14 15:22:39 UTC
  • mfrom: (4523.4.21 1.18-lock-warnings)
  • Revision ID: pqm@pqm.ubuntu.com-20090814152239-m0ybwy7vfs32exeh
(jam) Update the test suite to cause failures when we take out
        multiple locks on the same file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
            tree.unlock()
32
32
 
33
33
    def test_flush_when_inventory_is_modified(self):
 
34
        # This takes a write lock on the source tree, then opens a second copy
 
35
        # and tries to grab a read lock, which is a bit bogus
 
36
        self.thisFailsStrictLockCheck()
34
37
        # when doing a flush the inventory should be written if needed.
35
38
        # we test that by changing the inventory (using
36
39
        # _set_inventory for now until add etc have lazy writes of