diff --git a/src/types/frozenset.rs b/src/types/frozenset.rs index cc16a934..34452af0 100644 --- a/src/types/frozenset.rs +++ b/src/types/frozenset.rs @@ -351,12 +351,6 @@ mod tests { Python::with_gil(|py| { let set = PyFrozenSet::new(py, &[1]).unwrap(); - // iter method - for el in set { - assert_eq!(1i32, el.extract::().unwrap()); - } - - // intoiterator iteration for el in set { assert_eq!(1i32, el.extract::().unwrap()); } diff --git a/src/types/set.rs b/src/types/set.rs index 8e36ab81..cf10f06e 100644 --- a/src/types/set.rs +++ b/src/types/set.rs @@ -476,12 +476,6 @@ mod tests { Python::with_gil(|py| { let set = PySet::new(py, &[1]).unwrap(); - // iter method - for el in set { - assert_eq!(1i32, el.extract::<'_, i32>().unwrap()); - } - - // intoiterator iteration for el in set { assert_eq!(1i32, el.extract::<'_, i32>().unwrap()); }