Rev 4612: Remove workaround for RemoteRepository in test_add_fallback_repository now the default is stackable. in http://bazaar.launchpad.net/~lifeless/bzr/bug-398668

Robert Collins robertc at robertcollins.net
Thu Aug 13 06:17:20 BST 2009


At http://bazaar.launchpad.net/~lifeless/bzr/bug-398668

------------------------------------------------------------
revno: 4612
revision-id: robertc at robertcollins.net-20090813051712-fzd3l4mfudloi1s5
parent: robertc at robertcollins.net-20090813013640-u7ivwqjtez1j2ze6
committer: Robert Collins <robertc at robertcollins.net>
branch nick: bug-398668
timestamp: Thu 2009-08-13 15:17:12 +1000
message:
  Remove workaround for RemoteRepository in test_add_fallback_repository now the default is stackable.
=== modified file 'bzrlib/tests/per_repository/test_add_fallback_repository.py'
--- a/bzrlib/tests/per_repository/test_add_fallback_repository.py	2009-03-23 14:59:43 +0000
+++ b/bzrlib/tests/per_repository/test_add_fallback_repository.py	2009-08-13 05:17:12 +0000
@@ -29,14 +29,7 @@
 class TestAddFallbackRepository(TestCaseWithRepository):
 
     def test_add_fallback_repository(self):
-        if isinstance(self.repository_format, remote.RemoteRepositoryFormat):
-            # RemoteRepository by default builds a default format real
-            # repository, but the default format is unstackble.  So explicitly
-            # make a stackable real repository and use that.
-            repo = self.make_repository('repo', format='1.9')
-            repo = bzrdir.BzrDir.open(self.get_url('repo')).open_repository()
-        else:
-            repo = self.make_repository('repo')
+        repo = self.make_repository('repo')
         tree = self.make_branch_and_tree('branch')
         if not repo._format.supports_external_lookups:
             self.assertRaises(errors.UnstackableRepositoryFormat,




More information about the bazaar-commits mailing list