~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-08-30 07:47:38 UTC
  • mfrom: (5394.2.1 integration2)
  • Revision ID: pqm@pqm.ubuntu.com-20100830074738-ymqwum541fi8b4sr
(vila) Fix most of the leaking tests (Vincent Ladeuil)

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)