~cjwatson/brz-svn/fix-http-probe

« back to all changes in this revision

Viewing changes to tests/test_workingtree.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-03 09:16:45 UTC
  • Revision ID: jelmer@jelmer.uk-20200203091645-q0f1yq77zkr1s3cz
More Python3 / formatting / breezy fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
 
227
227
    def test_lock_write(self):
228
228
        tree = self.make_svn_branch_and_tree('a', 'dc')
229
 
        tree.lock_write()
230
 
        tree.unlock()
 
229
        with tree.lock_write():
 
230
            pass
231
231
 
232
232
    def test_lock_read(self):
233
233
        tree = self.make_svn_branch_and_tree('a', 'dc')
234
 
        tree.lock_read()
235
 
        tree.unlock()
 
234
        with tree.lock_read():
 
235
            pass
236
236
 
237
237
    def test_get_ignore_list_empty(self):
238
238
        tree = self.make_svn_branch_and_tree('a', 'dc')