~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_exceptions.py

  • Committer: Ross Lagerwall
  • Date: 2012-08-07 06:32:51 UTC
  • mto: (6437.63.5 2.5)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: rosslagerwall@gmail.com-20120807063251-x9p03ghg2ws8oqjc
Add bzrlib/locale to .bzrignore

bzrlib/locale is generated with ./setup.py build_mo which is in turn called
by ./setup.py build

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007, 2009-2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 2009, 2010, 2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
58
58
            retcode=errors.EXIT_ERROR)
59
59
        self.assertContainsRe(err, r"^bzr: ERROR: .*'\\xa0'.* unsupported",
60
60
            flags=re.MULTILINE)
61
 
        self.assertEqual(out, "")
 
61
        self.assertEquals(out, "")
62
62
 
63
63
    def test_utf8_default_fs_enc(self):
64
64
        """In the C locale bzr treats a posix filesystem as UTF-8 encoded"""
141
141
 
142
142
    def test_repository_deprecation_warning_suppressed_global(self):
143
143
        """Old formats give a warning"""
144
 
        conf = config.GlobalStack()
145
 
        conf.set('suppress_warnings', 'format_deprecation')
 
144
        conf = config.GlobalConfig()
 
145
        conf.set_user_option('suppress_warnings', 'format_deprecation')
146
146
        self.make_obsolete_repo('foo')
147
147
        self.enable_deprecation_warning()
148
148
        out, err = self.run_bzr('status', working_dir='foo')
151
151
    def test_repository_deprecation_warning_suppressed_locations(self):
152
152
        """Old formats give a warning"""
153
153
        self.make_obsolete_repo('foo')
154
 
        conf = config.LocationStack(osutils.pathjoin(self.test_dir, 'foo'))
155
 
        conf.set('suppress_warnings', 'format_deprecation')
 
154
        conf = config.LocationConfig(osutils.pathjoin(self.test_dir, 'foo'))
 
155
        conf.set_user_option('suppress_warnings', 'format_deprecation')
156
156
        self.enable_deprecation_warning()
157
157
        out, err = self.run_bzr('status', working_dir='foo')
158
158
        self.check_warning(False)
160
160
    def test_repository_deprecation_warning_suppressed_branch(self):
161
161
        """Old formats give a warning"""
162
162
        tree = self.make_obsolete_repo('foo')
163
 
        conf = tree.branch.get_config_stack()
164
 
        conf.set('suppress_warnings', 'format_deprecation')
 
163
        conf = tree.branch.get_config()
 
164
        conf.set_user_option('suppress_warnings', 'format_deprecation')
165
165
        self.enable_deprecation_warning()
166
166
        out, err = self.run_bzr('status', working_dir='foo')
167
167
        self.check_warning(False)