~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

Fixup pb usage to use nested_progress_bar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1071
1071
            # as downgrades may not be available
1072
1072
            old_format = bzrdir.BzrDirFormat.get_default_format()
1073
1073
            bzrdir.BzrDirFormat.set_default_format(dir._format)
 
1074
            pb = ui.ui_factory.nested_progress_bar()
1074
1075
            try:
1075
 
                dir._format.get_converter(None).convert(dir,
1076
 
                    ui.ui_factory.progress_bar())
 
1076
                dir._format.get_converter(None).convert(dir, pb)
1077
1077
            finally:
1078
1078
                bzrdir.BzrDirFormat.set_default_format(old_format)
 
1079
                pb.finished()
1079
1080
            # and it should pass 'check' now.
1080
1081
            check(bzrdir.BzrDir.open(self.get_url('.')).open_branch(), False)
1081
1082