/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 breezy/tests/blackbox/test_logformats.py

  • Committer: Jelmer Vernooij
  • Date: 2019-09-21 17:08:09 UTC
  • mfrom: (7389 work)
  • mto: This revision was merged to the branch mainline in revision 7390.
  • Revision ID: jelmer@jelmer.uk-20190921170809-ejewbeue585deajo
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
            self.fail("%s exists" % conf_path)
42
42
 
43
43
        bedding.ensure_config_dir_exists()
44
 
        f = open(conf_path, 'wb')
45
 
        try:
 
44
        with open(conf_path, 'wb') as f:
46
45
            f.write(b"""[DEFAULT]
47
46
email=Joe Foo <joe@foo.com>
48
47
log_format=line
49
48
""")
50
 
        finally:
51
 
            f.close()
52
49
 
53
50
    def _make_simple_branch(self, relpath='.'):
54
51
        wt = self.make_branch_and_tree(relpath)