/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/per_workingtree/test_basis_inventory.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-24 17:48:04 UTC
  • mfrom: (6921 work)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180324174804-xf22o05byoj12x1q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
        # Make sure the basis file is created by a commit
35
35
        t = self.make_branch_and_tree('.')
 
36
        if getattr(t, 'root_inventory', None) is None:
 
37
            raise TestNotApplicable("not applicable to %r"
 
38
                % (self.workingtree_format,))
 
39
 
36
40
        b = t.branch
37
41
        with open('a', 'wb') as f: f.write('a\n')
38
42
        t.add('a')
68
72
            raise TestNotApplicable("not applicable to %r"
69
73
                % (self.workingtree_format,))
70
74
        t = self.make_branch_and_tree('.')
 
75
        if getattr(t, 'root_inventory', None) is None:
 
76
            raise TestNotApplicable("not applicable to %r"
 
77
                % (self.workingtree_format,))
 
78
 
 
79
 
71
80
        b = t.branch
72
81
        with open('a', 'wb') as f: f.write('a\n')
73
82
        t.add('a')