~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_send.py

  • Committer: Vincent Ladeuil
  • Date: 2012-01-09 20:55:07 UTC
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120109205507-2i3en5r4w4ohdchj
Use idioms coherently and add comments to make their purpose clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
306
306
    def set_config_send_strict(self, value):
307
307
        br = branch.Branch.open('local')
308
308
        br.lock_write()
309
 
        conf = br.get_config_stack()
310
 
        conf.set('send_strict', value)
311
 
        br.unlock()
 
309
        try:
 
310
            br.get_config_stack().set('send_strict', value)
 
311
        finally:
 
312
            br.unlock()
312
313
 
313
314
    def assertSendFails(self, args):
314
315
        out, err = self.run_send(args, rc=3, err_re=self._default_errors)