Delete duplicate test code (#3926)

These used to explicitly call `.iter()`, but that was removed in b65cbb9
to remove lints.
This commit is contained in:
Lily Foote 2024-03-02 22:53:28 +00:00 committed by GitHub
parent 1c5265e1c2
commit d94827720e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 12 deletions

View File

@ -351,12 +351,6 @@ mod tests {
Python::with_gil(|py| { Python::with_gil(|py| {
let set = PyFrozenSet::new(py, &[1]).unwrap(); let set = PyFrozenSet::new(py, &[1]).unwrap();
// iter method
for el in set {
assert_eq!(1i32, el.extract::<i32>().unwrap());
}
// intoiterator iteration
for el in set { for el in set {
assert_eq!(1i32, el.extract::<i32>().unwrap()); assert_eq!(1i32, el.extract::<i32>().unwrap());
} }

View File

@ -476,12 +476,6 @@ mod tests {
Python::with_gil(|py| { Python::with_gil(|py| {
let set = PySet::new(py, &[1]).unwrap(); 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 { for el in set {
assert_eq!(1i32, el.extract::<'_, i32>().unwrap()); assert_eq!(1i32, el.extract::<'_, i32>().unwrap());
} }