~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_views.py

(vila) Calling super() instead of mentioning the base class in setUp avoid
 mistakes. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                "supports views, assuming not" % fmt)
41
41
        if not f():
42
42
            raise TestSkipped("format %s doesn't support views" % fmt)
43
 
        TestCaseWithWorkingTree.setUp(self)
 
43
        super(TestTreeViews, self).setUp()
44
44
 
45
45
    def test_views_initially_empty(self):
46
46
        wt = self.make_branch_and_tree('wt')
172
172
            raise TestSkipped("Format %s declares that views are supported"
173
173
                              % fmt)
174
174
            # it's covered by TestTreeViews
175
 
        TestCaseWithWorkingTree.setUp(self)
 
175
        super(TestUnsupportedViews, self).setUp()
176
176
 
177
177
    def test_view_methods_raise(self):
178
178
        wt = self.make_branch_and_tree('wt')