diff --git a/src/ffi/tests.rs b/src/ffi/tests.rs index cb097259..a3160751 100644 --- a/src/ffi/tests.rs +++ b/src/ffi/tests.rs @@ -311,6 +311,8 @@ fn test_inc_dec_ref() { #[test] #[cfg(Py_3_12)] fn test_inc_dec_ref_immortal() { + use crate::types::any::PyAnyMethods; + Python::with_gil(|py| { let obj = py.None();