/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/__init__.py

Switch --coverage to use coverage module.

Merged from https://code.launchpad.net/~jelmer/brz/coverage-coverage/+merge/345192

Show diffs side-by-side

added added

removed removed

Lines of Context:
3487
3487
            try:
3488
3488
                stream = os.fdopen(c2pwrite, 'wb', 1)
3489
3489
                workaround_zealous_crypto_random()
 
3490
                try:
 
3491
                    import coverage
 
3492
                except ImportError:
 
3493
                    pass
 
3494
                else:
 
3495
                    coverage.process_startup()
3490
3496
                os.close(c2pread)
3491
3497
                # Leave stderr and stdout open so we can see test noise
3492
3498
                # Close stdin so that the child goes away if it decides to