/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2010-09-25 19:31:53 UTC
  • mto: This revision was merged to the branch mainline in revision 5445.
  • Revision ID: john@arbash-meinel.com-20100925193153-lyy1agn4d0rkgfv6
Do a full test suite against all the subunit permutations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4533
4533
try:
4534
4534
    from subunit import TestProtocolClient
4535
4535
    from subunit.test_results import AutoTimingTestResultDecorator
 
4536
    class SubUnitBzrProtocolClient(TestProtocolClient):
 
4537
 
 
4538
        def addSuccess(self, test, details=None):
 
4539
            # The subunit client always includes the details in the subunit
 
4540
            # stream, but we don't want to include it in ours.
 
4541
            if 'log' in details:
 
4542
                del details['log']
 
4543
            return super(SubUnitBzrProtocolClient, self).addSuccess(
 
4544
                test, details)
 
4545
 
4536
4546
    class SubUnitBzrRunner(TextTestRunner):
4537
4547
        def run(self, test):
4538
4548
            result = AutoTimingTestResultDecorator(
4539
 
                TestProtocolClient(self.stream))
 
4549
                SubUnitBzrProtocolClient(self.stream))
4540
4550
            test.run(result)
4541
4551
            return result
4542
4552
except ImportError: