~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_symbol_versioning.py

  • Committer: Vincent Ladeuil
  • Date: 2010-01-25 17:48:22 UTC
  • mto: (4987.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100125174822-nce4l19sbwx83jvq
Deploying the new overrideAttr facility further reduces the complexity
and make the code clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
        existing_filters = list(warnings.filters)
225
225
        def restore():
226
226
            warnings.filters[:] = existing_filters
227
 
        # XXX: Can we address that ? -- vila 100124
228
227
        self.addCleanup(restore)
229
228
        # Clean out the filters so we have a clean slate.
230
229
        warnings.resetwarnings()