Commit 3c1c9f41 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 313bc6ab
......@@ -319,7 +319,7 @@ func (bf *zBigFileState) PySetState(pystate interface{}) (err error) {
return fmt.Errorf("expect [2](); got [%d]()", len(t))
}
// blksize, ok := pickletools.Xint64(t[0]) // XXX reenable (pickletools)
blksize, ok := zodbpickle.Xint64(t[0]) // XXX reenable (pickletools)
if !ok {
return fmt.Errorf("blksize: expect integer; got %T", t[0])
}
......@@ -329,7 +329,7 @@ func (bf *zBigFileState) PySetState(pystate interface{}) (err error) {
return fmt.Errorf("blktab: expect LOBTree; got %T", t[1])
}
bf.blksize = 0 // XXX blksize
bf.blksize = blksize
bf.blktab = blktab
return nil
}
......
......@@ -96,11 +96,6 @@ func TestZBlk(t *testing.T) {
// XXX
_, _, _ = z0, z1, zf
_ = xactivate
/*
xactivate(zf)
if zf.blksize != blksize {
t.Fatalf("zf: blksize=%d; want %d", zf.blksize, blksize)
......@@ -108,6 +103,5 @@ func TestZBlk(t *testing.T) {
// XXX zf.blktab.Get(0) -> z0
// XXX zf.blktab.Get(1) -> z1
*/
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment