~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Wouter van Heyst
  • Date: 2006-06-07 17:23:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: larstiq@larstiq.dyndns.org-20060607172359-6023dec74344453d
more code cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
329
329
        test_root = TestCaseInTempDir.TEST_ROOT
330
330
        if result.wasSuccessful() or not self.keep_output:
331
331
            if test_root is not None:
332
 
                    osutils.rmtree(test_root.encode(sys.getfilesystemencoding()))
 
332
                # If LANG=C we probably have created some bogus paths
 
333
                # which rmtree(unicode) will fail to delete
 
334
                # so make sure we are using rmtree(str) to delete everything
 
335
                osutils.rmtree(test_root.encode(
 
336
                    sys.getfilesystemencoding()))
333
337
        else:
334
338
            if self.pb is not None:
335
339
                self.pb.note("Failed tests working directories are in '%s'\n",