Rev 6067: (gz) Fix one more test case failing due to better than expected zlib in file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/2.4/

Patch Queue Manager pqm at pqm.ubuntu.com
Mon Feb 27 15:45:37 UTC 2012


At file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/2.4/

------------------------------------------------------------
revno: 6067 [merge]
revision-id: pqm at pqm.ubuntu.com-20120227154537-xuts4sno7f8ltifc
parent: pqm at pqm.ubuntu.com-20120227125745-rren91v7krkuka65
parent: martin.packman at canonical.com-20120227150925-cq5vr7hhv3s6fzl0
committer: Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: 2.4
timestamp: Mon 2012-02-27 15:45:37 +0000
message:
  (gz) Fix one more test case failing due to better than expected zlib
   compression (Martin Packman)
modified:
  bzrlib/tests/test_btree_index.py test_index.py-20080624222253-p0x5f92uyh5hw734-13
=== modified file 'bzrlib/tests/test_btree_index.py'
--- a/bzrlib/tests/test_btree_index.py	2012-02-26 19:56:07 +0000
+++ b/bzrlib/tests/test_btree_index.py	2012-02-27 15:09:25 +0000
@@ -888,12 +888,12 @@
         for offset in range(first_byte, size, page_size):
             readv_request.append((offset, page_size))
         # The last page is truncated
-        readv_request[-1] = (readv_request[-1][0], 1303220 % page_size)
+        readv_request[-1] = (readv_request[-1][0], size % page_size)
         expected = [('readv', 'index', [(0, page_size)], False, None),
              ('readv',  'index', readv_request, False, None)]
         if expected != t._activity:
             self.assertEqualDiff(pprint.pformat(expected),
-                                 pprint.pformat(transport._activity))
+                                 pprint.pformat(t._activity))
 
     def _test_iter_entries_references_resolved(self):
         index = self.make_index(1, nodes=[




More information about the bazaar-commits mailing list