/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

(lifeless) Generalise probing for executables used in selftest. (Martin von
 Gagern)

Show diffs side-by-side

added added

removed removed

Lines of Context:
749
749
    # XXX: Should probably unify more with CannedInputUIFactory or a
750
750
    # particular configuration of TextUIFactory, or otherwise have a clearer
751
751
    # idea of how they're supposed to be different.
752
 
    # See https://bugs.edge.launchpad.net/bzr/+bug/408213
 
752
    # See https://bugs.launchpad.net/bzr/+bug/408213
753
753
 
754
754
    def __init__(self, stdout=None, stderr=None, stdin=None):
755
755
        if stdin is not None:
1524
1524
            'EDITOR': None,
1525
1525
            'BZR_EMAIL': None,
1526
1526
            'BZREMAIL': None, # may still be present in the environment
1527
 
            'EMAIL': None,
 
1527
            'EMAIL': 'jrandom@example.com', # set EMAIL as bzr does not guess
1528
1528
            'BZR_PROGRESS_BAR': None,
1529
1529
            'BZR_LOG': None,
1530
1530
            'BZR_PLUGIN_PATH': None,
3733
3733
        'bzrlib.tests.test_lru_cache',
3734
3734
        'bzrlib.tests.test_lsprof',
3735
3735
        'bzrlib.tests.test_mail_client',
 
3736
        'bzrlib.tests.test_matchers',
3736
3737
        'bzrlib.tests.test_memorytree',
3737
3738
        'bzrlib.tests.test_merge',
3738
3739
        'bzrlib.tests.test_merge3',
4100
4101
        if test_id != None:
4101
4102
            ui.ui_factory.clear_term()
4102
4103
            sys.stderr.write('\nWhile running: %s\n' % (test_id,))
 
4104
        # Ugly, but the last thing we want here is fail, so bear with it.
 
4105
        printable_e = str(e).decode(osutils.get_user_encoding(), 'replace'
 
4106
                                    ).encode('ascii', 'replace')
4103
4107
        sys.stderr.write('Unable to remove testing dir %s\n%s'
4104
 
                         % (os.path.basename(dirname), e))
 
4108
                         % (os.path.basename(dirname), printable_e))
4105
4109
 
4106
4110
 
4107
4111
class Feature(object):