Skip to content

Commit

Permalink
Delete duplicate test code (#3926)
Browse files Browse the repository at this point in the history
These used to explicitly call `.iter()`, but that was removed in b65cbb9
to remove lints.
  • Loading branch information
LilyFoote authored Mar 2, 2024
1 parent 1c5265e commit d948277
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/types/frozenset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<i32>().unwrap());
}

// intoiterator iteration
for el in set {
assert_eq!(1i32, el.extract::<i32>().unwrap());
}
Expand Down
6 changes: 0 additions & 6 deletions src/types/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit d948277

Please sign in to comment.