test__btree_serializer.TestGCCKHSHA1LeafNode.test_large_offsets fails on alpha
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin Packman |
Bug Description
I'm not entirely sure what's going on here:
FAIL: bzrlib.
-------
_StringException: Text attachment: log
------------
------------
Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/
return fn(*args, **kwargs)
File "/usr/lib/
return self._get_
File "/build/
], [x[1][0] for x in leaf.all_items()])
AssertionError: not equal:
a = ['12345678901 1234567890 0 1',
'2147483648 2147483647 0 1',
'4294967296 4294967295 4294967294 1']
b = ['12345678901 1234567890 0 1',
'2147483648 2147483647 0 1',
'4294967296 184467440737095
------------
For background, see https:/
Related branches
- Jelmer Vernooij (community): Approve
-
Diff: 18 lines (+2/-2)1 file modifiedbzrlib/_btree_serializer_pyx.pyx (+2/-2)
Changed in bzr: | |
assignee: | nobody → Martin [gz] (gz) |
status: | Triaged → In Progress |
Looks like a standard 32 bit vs 64 bit problem:
>>> for i in (4294967296, 4294967295, 4294967294):
print hex(i)
...
0x100000000L
0xFFFFFFFFL
0xFFFFFFFEL
>>> for i in (4294967296, 184467440737095 51615, 184467440737095 51614):
print hex(i)
...
0x100000000L
0xFFFFFFFFFFFFFFFFL
0xFFFFFFFFFFFFFFFEL