~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: 2008-08-14 17:55:22 UTC
  • mfrom: (3613.3.5 base_test_path)
  • Revision ID: pqm@pqm.ubuntu.com-20080814175522-mho538328p19v77a
(Adrian Wilkins) Use osutils.pathjoin() rather than os.path.join() to
        set the base directory for tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
2064
2064
        For TestCaseInTempDir we create a temporary directory based on the test
2065
2065
        name and then create two subdirs - test and home under it.
2066
2066
        """
2067
 
        name_prefix = os.path.join(self.TEST_ROOT, self._getTestDirPrefix())
 
2067
        name_prefix = osutils.pathjoin(self.TEST_ROOT, self._getTestDirPrefix())
2068
2068
        name = name_prefix
2069
2069
        for i in range(100):
2070
2070
            if os.path.exists(name):