~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(gz) Close files more promptly in tests to avoid issues on pypy (Wouter van
 Heyst)

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    def test_branch_tree(self):
82
82
        self.run_bzr("init-repo --trees a")
83
83
        self.run_bzr("init --format=default b")
84
 
        file('b/hello', 'wt').write('bar')
 
84
        with file('b/hello', 'wt') as f: f.write('bar')
85
85
        self.run_bzr("add b/hello")
86
86
        self.run_bzr("commit -m bar b/hello")
87
87