/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/__init__.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2018-03-24 17:25:27 UTC
  • mfrom: (6910.3.2 ui_enter)
  • Revision ID: breezy.the.bot@gmail.com-20180324172527-yczskdtrucxhpycd
Further work on sane ui factory interface and fix choose in char mode

Merged from https://code.launchpad.net/~gz/brz/ui_enter/+merge/342043

Show diffs side-by-side

added added

removed removed

Lines of Context:
1959
1959
            os.chdir(working_dir)
1960
1960
 
1961
1961
        try:
1962
 
            result = self.apply_redirected(
1963
 
                ui.ui_factory.stdin,
1964
 
                stdout, stderr,
1965
 
                _mod_commands.run_bzr_catch_user_errors,
1966
 
                args)
 
1962
            with ui.ui_factory:
 
1963
                result = self.apply_redirected(
 
1964
                    ui.ui_factory.stdin,
 
1965
                    stdout, stderr,
 
1966
                    _mod_commands.run_bzr_catch_user_errors,
 
1967
                    args)
1967
1968
        finally:
1968
1969
            logger.removeHandler(handler)
1969
1970
            ui.ui_factory = old_ui_factory