/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/test_selftest.py

  • Committer: Aaron Bentley
  • Date: 2007-02-16 07:02:19 UTC
  • mfrom: (2292 +trunk)
  • mto: (2255.6.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: aaron.bentley@utoronto.ca-20070216070219-b22k0gwnisnxawnk
Merged bzr.dev (17 tests failing)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
27
27
import bzrlib
28
28
from bzrlib import (
29
29
    bzrdir,
 
30
    errors,
30
31
    memorytree,
31
32
    osutils,
32
33
    repository,
 
34
    symbol_versioning,
33
35
    )
34
36
from bzrlib.progress import _BaseProgressBar
 
37
from bzrlib.repofmt import weaverepo
 
38
from bzrlib.symbol_versioning import zero_ten, zero_eleven
35
39
from bzrlib.tests import (
36
40
                          ChrootedTestCase,
37
41
                          TestCase,
44
48
                          )
45
49
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
46
50
from bzrlib.tests.TestUtil import _load_module_by_name
47
 
import bzrlib.errors as errors
48
 
from bzrlib import symbol_versioning
49
 
from bzrlib.symbol_versioning import zero_ten, zero_eleven
50
51
from bzrlib.trace import note
51
52
from bzrlib.transport.memory import MemoryServer, MemoryTransport
52
53
from bzrlib.version import _get_bzr_source_tree
476
477
    def test_make_branch_and_memory_tree_with_format(self):
477
478
        """make_branch_and_memory_tree should accept a format option."""
478
479
        format = bzrdir.BzrDirMetaFormat1()
479
 
        format.repository_format = repository.RepositoryFormat7()
 
480
        format.repository_format = weaverepo.RepositoryFormat7()
480
481
        tree = self.make_branch_and_memory_tree('dir', format=format)
481
482
        # Guard against regression into MemoryTransport leaking
482
483
        # files to disk instead of keeping them in memory.