~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Aaron Bentley
  • Date: 2007-01-26 04:00:12 UTC
  • mfrom: (2245 +trunk)
  • mto: (2255.6.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: aaron.bentley@utoronto.ca-20070126040012-j80k7qhvj80dyp9j
merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
468
468
        a branch and checking no directory was created at its relpath.
469
469
        """
470
470
        tree = self.make_branch_and_memory_tree('dir')
471
 
        self.failIfExists('dir')
 
471
        # Guard against regression into MemoryTransport leaking
 
472
        # files to disk instead of keeping them in memory.
 
473
        self.failIf(osutils.lexists('dir'))
472
474
        self.assertIsInstance(tree, memorytree.MemoryTree)
473
475
 
474
476
    def test_make_branch_and_memory_tree_with_format(self):
476
478
        format = bzrdir.BzrDirMetaFormat1()
477
479
        format.repository_format = repository.RepositoryFormat7()
478
480
        tree = self.make_branch_and_memory_tree('dir', format=format)
479
 
        self.failIfExists('dir')
 
481
        # Guard against regression into MemoryTransport leaking
 
482
        # files to disk instead of keeping them in memory.
 
483
        self.failIf(osutils.lexists('dir'))
480
484
        self.assertIsInstance(tree, memorytree.MemoryTree)
481
485
        self.assertEqual(format.repository_format.__class__,
482
486
            tree.branch.repository._format.__class__)