We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d5ef5 commit f6ac7b2Copy full SHA for f6ac7b2
src/py/convert.rs
@@ -243,9 +243,8 @@ mod tests {
243
244
fn assert_roundtrip_conversion(original_value: &value::Value, value_type: &schema::ValueType) {
245
Python::with_gil(|py| {
246
- // Convert Rust value to Python object
247
- let pythonized_value = Pythonized(original_value.clone());
248
- let py_object = pythonized_value.into_pyobject(py).unwrap_or_else(|e| {
+ // Convert Rust value to Python object using value_to_py_object
+ let py_object = value_to_py_object(py, original_value).unwrap_or_else(|e| {
249
panic!("Failed to convert Rust value to Python object: {:?}", e)
250
});
251
0 commit comments