Show More
@@ -218,10 +218,11 b' py_class!(pub class MixedIndex |py| {' | |||||
218 | def pack_header(&self, *args, **kw) -> PyResult<PyObject> { |
|
218 | def pack_header(&self, *args, **kw) -> PyResult<PyObject> { | |
219 | let rindex = self.index(py).borrow(); |
|
219 | let rindex = self.index(py).borrow(); | |
220 | let packed = rindex.pack_header(args.get_item(py, 0).extract(py)?); |
|
220 | let packed = rindex.pack_header(args.get_item(py, 0).extract(py)?); | |
221 |
let |
|
221 | let rust_res = PyBytes::new(py, &packed).into_object(); | |
222 | let cpacked = self.call_cindex(py, "pack_header", args, kw)?; |
|
222 | ||
223 |
|
|
223 | let c_res = self.call_cindex(py, "pack_header", args, kw)?; | |
224 | Ok(packed) |
|
224 | assert_py_eq(py, "pack_header", &rust_res, &c_res)?; | |
|
225 | Ok(rust_res) | |||
225 | } |
|
226 | } | |
226 |
|
227 | |||
227 | /// get an index entry |
|
228 | /// get an index entry |
General Comments 0
You need to be logged in to leave comments.
Login now