~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-08-22 17:02:22 UTC
  • mfrom: (1551.8.8 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20060822170222-c5f47d2de719bc8d
Made assertDeprecated return the callable's result

Show diffs side-by-side

added added

removed removed

Lines of Context:
592
592
        method = symbol_versioning.warn
593
593
        symbol_versioning.set_warning_method(capture_warnings)
594
594
        try:
595
 
            callable(*args, **kwargs)
 
595
            result = callable(*args, **kwargs)
596
596
        finally:
597
 
            result = symbol_versioning.set_warning_method(method)
 
597
            symbol_versioning.set_warning_method(method)
598
598
        self.assertEqual(expected, local_warnings)
599
599
        return result
600
600