~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-11-03 02:35:48 UTC
  • mfrom: (2067.3.7 cleanup-errors)
  • Revision ID: pqm@pqm.ubuntu.com-20061103023548-12e702bb911c4be2
(mbp) deprecate BzrNewError, change to using .internal_error on exceptions, etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
669
669
            a_callable(*args, **kwargs).
670
670
        """
671
671
        local_warnings = []
672
 
        def capture_warnings(msg, cls, stacklevel=None):
 
672
        def capture_warnings(msg, cls=None, stacklevel=None):
673
673
            # we've hooked into a deprecation specific callpath,
674
674
            # only deprecations should getting sent via it.
675
675
            self.assertEqual(cls, DeprecationWarning)