diff --git a/tests/test_datetime_import.rs b/tests/test_datetime_import.rs index bb890fe1c04..619df891944 100644 --- a/tests/test_datetime_import.rs +++ b/tests/test_datetime_import.rs @@ -1,6 +1,6 @@ #![cfg(not(Py_LIMITED_API))] -use pyo3::{prelude::PyAnyMethods, types::PyDate, Python}; +use pyo3::{prelude::*, types::PyDate}; #[test] #[should_panic(expected = "module 'datetime' has no attribute 'datetime_CAPI'")]