From d94827720e5335b8281e32451bf5fed1102032cb Mon Sep 17 00:00:00 2001 From: Lily Foote Date: Sat, 2 Mar 2024 22:53:28 +0000 Subject: [PATCH] Delete duplicate test code (#3926) These used to explicitly call `.iter()`, but that was removed in b65cbb9 to remove lints. --- src/types/frozenset.rs | 6 ------ src/types/set.rs | 6 ------ 2 files changed, 12 deletions(-) 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()); }