Rev 4228: Fix test_remote failing because of less _real_repository objects. in http://people.ubuntu.com/~robertc/baz2.0/pending/RemoteRepository.add_fallback_repo
Robert Collins
robertc at robertcollins.net
Wed Apr 1 05:05:36 BST 2009
At http://people.ubuntu.com/~robertc/baz2.0/pending/RemoteRepository.add_fallback_repo
------------------------------------------------------------
revno: 4228
revision-id: robertc at robertcollins.net-20090401040529-vwb8tpu42jk2m0w6
parent: robertc at robertcollins.net-20090401035319-i5d3i8jnyp3jxryz
committer: Robert Collins <robertc at robertcollins.net>
branch nick: RemoteRepository.add_fallback_repo
timestamp: Wed 2009-04-01 15:05:29 +1100
message:
Fix test_remote failing because of less _real_repository objects.
=== modified file 'bzrlib/tests/test_remote.py'
--- a/bzrlib/tests/test_remote.py 2009-03-31 23:23:07 +0000
+++ b/bzrlib/tests/test_remote.py 2009-04-01 04:05:29 +0000
@@ -999,11 +999,10 @@
result = branch.get_stacked_on_url()
self.assertEqual('../base', result)
client.finished_test()
- # it's in the fallback list both for the RemoteRepository and its vfs
- # repository
+ # it's in the fallback list both for the RemoteRepository.
self.assertEqual(1, len(branch.repository._fallback_repositories))
- self.assertEqual(1,
- len(branch.repository._real_repository._fallback_repositories))
+ # And we haven't had to construct a real repository.
+ self.assertEqual(None, branch.repository._real_repository)
class TestBranchSetLastRevision(RemoteBranchTestCase):
More information about the bazaar-commits
mailing list