From 00db5e72d2826d0b0d78e23131148c2868077c2e Mon Sep 17 00:00:00 2001 From: Iliya Malecki Date: Sun, 13 Aug 2023 19:27:18 +0200 Subject: [PATCH] patched the test to include into_py --- src/conversions/num_bigint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conversions/num_bigint.rs b/src/conversions/num_bigint.rs index 32307ad69ba..12ee508daae 100644 --- a/src/conversions/num_bigint.rs +++ b/src/conversions/num_bigint.rs @@ -357,7 +357,7 @@ mod tests { ($T:ty, $value:expr, $py:expr) => { let value = $value; println!("{}: {}", stringify!($T), value); - let python_value = value.clone().to_object(py); + let python_value = value.clone().into_py(py); let roundtrip_value = python_value.extract::<$T>(py).unwrap(); assert_eq!(value, roundtrip_value); };