~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

Move the '_save' parameter from '__init__' to 'from_bytes', fix fallouts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
        os.environ['VISUAL'] = 'visual'
242
242
        os.environ['EDITOR'] = 'editor'
243
243
 
244
 
        conf = config.GlobalConfig(_content='editor = config_editor\n',
245
 
                                   _save=True)
 
244
        conf = config.GlobalConfig.from_bytes('editor = config_editor\n',
 
245
                                              save=True)
246
246
 
247
247
        editors = list(msgeditor._get_editor())
248
248
        editors = [editor for (editor, cfg_src) in editors]