/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 bzrlib/tests/test_symbol_versioning.py

  • Committer: Andrew Bennetts
  • Date: 2010-10-08 02:13:25 UTC
  • mto: This revision was merged to the branch mainline in revision 5472.
  • Revision ID: andrew.bennetts@canonical.com-20101008021325-3975lpt8xn6vd5bv
Give slightly more informative errors when bad object or str is passed to _chk_map_pyx._bytes_to_text_key.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
        symbol_versioning.suppress_deprecation_warnings()
242
242
        self.assertFirstWarning('ignore', DeprecationWarning)
243
243
 
 
244
    def test_set_restore_filters(self):
 
245
        original_filters = warnings.filters[:]
 
246
        symbol_versioning.suppress_deprecation_warnings()()
 
247
        self.assertEqual(original_filters, warnings.filters)
 
248
 
244
249
    def test_suppress_deprecation_with_warning_filter(self):
245
250
        """don't suppress if we already have a filter"""
246
251
        warnings.filterwarnings('error', category=Warning)