~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Merge bzr.dev

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