/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: Canonical.com Patch Queue Manager
  • Date: 2010-05-14 09:48:51 UTC
  • mfrom: (5229.2.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100514094851-mju4y69uma6kwsqe
(vila,
        Martin [gz]) Make bt._rmtree_temp_dir more robust against non-ascii
        exceptions

Show diffs side-by-side

added added

removed removed

Lines of Context:
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):