/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/lock_helpers.py

  • Committer: Vincent Ladeuil
  • Date: 2009-07-10 10:46:00 UTC
  • mto: (4525.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4526.
  • Revision ID: v.ladeuil+lp@free.fr-20090710104600-81t8scvfiqlrnwaq
Fixed as asked in review.

* bzrlib/tests/per_workingtree/__init__.py:
(load_tests):  Remove common prefix.

* bzrlib/tests/per_tree/__init__.py:
(load_tests):  Remove common prefix.

* bzrlib/tests/per_branch/__init__.py:
(load_tests): Remove common prefix.

* bzrlib/tests/__init__.py:
(test_suite): Restore module names sorting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Helper functions/classes for testing locking"""
18
18
 
19
19
from bzrlib import errors
20
 
from bzrlib.decorators import only_raises
21
20
 
22
21
 
23
22
class TestPreventLocking(errors.LockError):
69
68
            return self._other.lock_write()
70
69
        raise TestPreventLocking('lock_write disabled')
71
70
 
72
 
    @only_raises(errors.LockNotHeld, errors.LockBroken)
73
71
    def unlock(self):
74
72
        self._sequence.append((self._other_id, 'ul', self._allow_unlock))
75
73
        if self._allow_unlock: