~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_debug.py

  • Committer: Vincent Ladeuil
  • Date: 2011-11-16 17:19:13 UTC
  • mto: This revision was merged to the branch mainline in revision 6273.
  • Revision ID: v.ladeuil+lp@free.fr-20111116171913-6axpxlhb35y2d4sh
Only the DEFAULT section is searched for the normal uses of bazaar.conf

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
    def assertDebugFlags(self, expected_flags, conf_bytes):
36
36
        conf = config.GlobalStack()
37
 
        conf.store._load_from_string(conf_bytes)
 
37
        conf.store._load_from_string('[DEFAULT]\n' + conf_bytes)
38
38
        conf.store.save()
39
39
        self.overrideAttr(debug, 'debug_flags', set())
40
40
        debug.set_debug_flags_from_config()