Rev 4618: Teach the check for get_missing_parent_inventories that this test applies to direct repositories not RemoteRepository. in http://bazaar.launchpad.net/~lifeless/bzr/test_write_group
Robert Collins
robertc at robertcollins.net
Mon Aug 17 05:18:59 BST 2009
At http://bazaar.launchpad.net/~lifeless/bzr/test_write_group
------------------------------------------------------------
revno: 4618
revision-id: robertc at robertcollins.net-20090817041857-uwfbijkz22icnln6
parent: pqm at pqm.ubuntu.com-20090817003227-g813yyjlq47j9qyb
committer: Robert Collins <robertc at robertcollins.net>
branch nick: test_write_group
timestamp: Mon 2009-08-17 14:18:57 +1000
message:
Teach the check for get_missing_parent_inventories that this test applies to direct repositories not RemoteRepository.
=== modified file 'bzrlib/tests/per_repository/test_write_group.py'
--- a/bzrlib/tests/per_repository/test_write_group.py 2009-06-26 09:24:34 +0000
+++ b/bzrlib/tests/per_repository/test_write_group.py 2009-08-17 04:18:57 +0000
@@ -131,6 +131,7 @@
# suppressed. See also test_pack_repository's test of the same name.
self.assertEqual(None, repo.abort_write_group(suppress_errors=True))
+
class TestGetMissingParentInventories(TestCaseWithRepository):
def test_empty_get_missing_parent_inventories(self):
@@ -332,8 +333,10 @@
def test_insert_stream_passes_resume_info(self):
repo = self.make_repository('test-repo')
- if not repo._format.supports_external_lookups:
- raise TestNotApplicable('only valid in resumable repos')
+ if (not repo._format.supports_external_lookups or
+ isinstance(repo, remote.RemoteRepository)):
+ raise TestNotApplicable(
+ 'only valid for direct connections to resumable repos')
# log calls to get_missing_parent_inventories, so that we can assert it
# is called with the correct parameters
call_log = []
More information about the bazaar-commits
mailing list