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:
parent
1c5265e1c2
commit
d94827720e
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue