/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: 2008-07-21 08:58:33 UTC
  • mto: This revision was merged to the branch mainline in revision 3566.
  • Revision ID: mbp@sourcefrog.net-20080721085833-9s05ca14867t4ww3
Rename _getTestDirPrefix not to look like a test

Show diffs side-by-side

added added

removed removed

Lines of Context:
2041
2041
            self.log("actually: %r" % contents)
2042
2042
            self.fail("contents of %s not as expected" % filename)
2043
2043
 
2044
 
    def testDirPrefix(self):
 
2044
    def _getTestDirPrefix(self):
2045
2045
        # create a directory within the top level test directory
2046
2046
        if sys.platform == 'win32':
2047
2047
            name_prefix = re.sub('[<>*=+",:;_/\\-]', '_', self.id())
2057
2057
        For TestCaseInTempDir we create a temporary directory based on the test
2058
2058
        name and then create two subdirs - test and home under it.
2059
2059
        """
2060
 
        name_prefix = os.path.join(self.TEST_ROOT, self.testDirPrefix())
 
2060
        name_prefix = os.path.join(self.TEST_ROOT, self._getTestDirPrefix())
2061
2061
        name = name_prefix
2062
2062
        for i in range(100):
2063
2063
            if os.path.exists(name):