~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-05 03:52:11 UTC
  • mfrom: (1551.6.3 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20060405035211-6dd048f3ddc0f844
Shorten test dir names, to avoid path-length problems

Show diffs side-by-side

added added

removed removed

Lines of Context:
603
603
        super(TestCaseInTempDir, self).setUp()
604
604
        self._make_test_root()
605
605
        _currentdir = os.getcwdu()
 
606
        # shorten the name, to avoid test failures due to path length
606
607
        short_id = self.id().replace('bzrlib.tests.', '') \
607
 
                   .replace('__main__.', '')
 
608
                   .replace('__main__.', '')[-100:]
608
609
        # it's possible the same test class is run several times for
609
610
        # parameterized tests, so make sure the names don't collide.  
610
611
        i = 0