/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: Martin Pool
  • Date: 2006-06-20 05:32:16 UTC
  • mfrom: (1797 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1798.
  • Revision ID: mbp@sourcefrog.net-20060620053216-817857d7ca3e9d1f
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
                # If LANG=C we probably have created some bogus paths
339
339
                # which rmtree(unicode) will fail to delete
340
340
                # so make sure we are using rmtree(str) to delete everything
341
 
                osutils.rmtree(test_root.encode(
342
 
                    sys.getfilesystemencoding()))
 
341
                # except on win32, where rmtree(str) will fail
 
342
                # since it doesn't have the property of byte-stream paths
 
343
                # (they are either ascii or mbcs)
 
344
                if sys.platform == 'win32':
 
345
                    # make sure we are using the unicode win32 api
 
346
                    test_root = unicode(test_root)
 
347
                else:
 
348
                    test_root = test_root.encode(
 
349
                        sys.getfilesystemencoding())
 
350
                osutils.rmtree(test_root)
343
351
        else:
344
352
            if self.pb is not None:
345
353
                self.pb.note("Failed tests working directories are in '%s'\n",
680
688
        self.log('run bzr: %r', argv)
681
689
        # FIXME: don't call into logging here
682
690
        handler = logging.StreamHandler(stderr)
683
 
        handler.setFormatter(bzrlib.trace.QuietFormatter())
684
691
        handler.setLevel(logging.INFO)
685
692
        logger = logging.getLogger('')
686
693
        logger.addHandler(handler)
1213
1220
                   'bzrlib.tests.test_decorators',
1214
1221
                   'bzrlib.tests.test_diff',
1215
1222
                   'bzrlib.tests.test_doc_generate',
 
1223
                   'bzrlib.tests.test_emptytree',
1216
1224
                   'bzrlib.tests.test_errors',
1217
1225
                   'bzrlib.tests.test_escaped_store',
1218
1226
                   'bzrlib.tests.test_fetch',
1244
1252
                   'bzrlib.tests.test_revision',
1245
1253
                   'bzrlib.tests.test_revisionnamespaces',
1246
1254
                   'bzrlib.tests.test_revprops',
 
1255
                   'bzrlib.tests.test_revisiontree',
1247
1256
                   'bzrlib.tests.test_rio',
1248
1257
                   'bzrlib.tests.test_sampler',
1249
1258
                   'bzrlib.tests.test_selftest',
1273
1282
                   'bzrlib.tests.test_xml',
1274
1283
                   ]
1275
1284
    test_transport_implementations = [
1276
 
        'bzrlib.tests.test_transport_implementations']
1277
 
 
 
1285
        'bzrlib.tests.test_transport_implementations',
 
1286
        'bzrlib.tests.test_read_bundle',
 
1287
        ]
1278
1288
    suite = TestUtil.TestSuite()
1279
1289
    loader = TestUtil.TestLoader()
1280
1290
    from bzrlib.transport import TransportTestProviderAdapter