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

  • Committer: Jelmer Vernooij
  • Date: 2017-08-26 19:06:32 UTC
  • mto: This revision was merged to the branch mainline in revision 6773.
  • Revision ID: jelmer@jelmer.uk-20170826190632-nmiqnyff6s4htneh
Use get_global_state>

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        self.assertEqual(crash_dir, config.crash_dir())
45
45
 
46
46
        self.overrideAttr(
47
 
            breezy.global_state,
 
47
            breezy.get_global_state(),
48
48
            'plugin_warnings',
49
49
            {'example': ['Failed to load plugin foo']})
50
50
 
86
86
        fake = plugin.PlugIn('fake_plugin', plugin)
87
87
        fake.version_info = lambda: (1, 2, 3)
88
88
        fake_plugins = {"fake_plugin": fake}
89
 
        self.overrideAttr(breezy.global_state, 'plugins', fake_plugins)
 
89
        self.overrideAttr(breezy.get_global_state(), 'plugins', fake_plugins)
90
90
 
91
91
    def test_report_bug_legacy(self):
92
92
        self.setup_fake_plugins()