~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_symbol_versioning.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-06-28 04:42:07 UTC
  • mfrom: (5320.2.8 globalzapping)
  • Revision ID: pqm@pqm.ubuntu.com-20100628044207-67md0bfc3ojod6of
(lifeless) Make the trace module managed more cleanly by BzrLibraryState.
 (Robert Collins)

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)