Rev 3811: fix a test case that exercises the new stop-early code. in http://bzr.arbash-meinel.com/branches/bzr/brisbane/remap
John Arbash Meinel
john at arbash-meinel.com
Wed Jan 7 17:54:50 GMT 2009
At http://bzr.arbash-meinel.com/branches/bzr/brisbane/remap
------------------------------------------------------------
revno: 3811
revision-id: john at arbash-meinel.com-20090107175432-hw8ozprv36irblz0
parent: john at arbash-meinel.com-20090107175252-19qp2rn5cknmlqof
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: remap
timestamp: Wed 2009-01-07 11:54:32 -0600
message:
fix a test case that exercises the new stop-early code.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_chk_map.py'
--- a/bzrlib/tests/test_chk_map.py 2008-12-02 23:44:34 +0000
+++ b/bzrlib/tests/test_chk_map.py 2009-01-07 17:54:32 +0000
@@ -570,11 +570,12 @@
self.assertIsInstance(chkmap._root_node._items['aac'], tuple)
self.assertIsInstance(chkmap._root_node._items['aad'], LeafNode)
# Unmapping the new node will check the existing nodes to see if they
- # would fit, and find out that they do not
+ # would fit, and find out that they do not, but it can also find out
+ # before reading all of them.
chkmap.unmap(('aad',))
self.assertIsInstance(chkmap._root_node._items['aaa'], LeafNode)
self.assertIsInstance(chkmap._root_node._items['aab'], LeafNode)
- self.assertIsInstance(chkmap._root_node._items['aac'], LeafNode)
+ self.assertIsInstance(chkmap._root_node._items['aac'], tuple)
def test_iter_changes_empty_ab(self):
# Asking for changes between an empty dict to a dict with keys returns
More information about the bazaar-commits
mailing list