Skip to content

Commit 1791a46

Browse files
chore: cleanup
1 parent 42c3edd commit 1791a46

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/py/convert.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,12 @@ pub fn value_from_py_object<'py>(
231231
Ok(result)
232232
}
233233

234-
// `value_from_py_object` and `value_to_py_object` are functions internal to this module. `Pythonized` is the API exposed by the module. Ideally we want to test on the behavior of the public API.
235234
#[cfg(test)]
236235
mod tests {
237-
use super::*; // To bring Pythonized into scope
236+
use super::*;
238237
use crate::base::schema;
239238
use crate::base::value;
240-
use crate::base::value::ScopeValue; // Changed import from GeneralValueSpec
239+
use crate::base::value::ScopeValue;
241240
use pyo3::Python;
242241
use std::collections::BTreeMap;
243242
use std::sync::Arc;
@@ -251,9 +250,6 @@ mod tests {
251250
});
252251

253252
println!("Python object: {:?}", py_object);
254-
// Convert Python object back to Rust value
255-
// let roundtripped_value = Pythonized::<value::Value>::extract_bound(&py_object)
256-
// .unwrap_or_else(|e| panic!("Failed to convert Python object back to Rust value: {:?}", e));
257253
let roundtripped_value =
258254
value_from_py_object(value_type, &py_object).unwrap_or_else(|e| {
259255
panic!(

0 commit comments

Comments
 (0)