Clarify purpose of FaultyIter

This commit is contained in:
mejrs 2022-01-24 23:30:20 +01:00
parent edca8e9148
commit 0debb622d6
2 changed files with 5 additions and 1 deletions

View File

@ -776,6 +776,8 @@ mod tests {
use std::ops::Range; use std::ops::Range;
// An iterator that lies about its `ExactSizeIterator` implementation.
// See https://github.com/PyO3/pyo3/issues/2118
struct FaultyIter(Range<usize>, usize); struct FaultyIter(Range<usize>, usize);
impl Iterator for FaultyIter { impl Iterator for FaultyIter {

View File

@ -758,7 +758,9 @@ mod tests {
} }
use std::ops::Range; use std::ops::Range;
// An iterator that lies about its `ExactSizeIterator` implementation.
// See https://github.com/PyO3/pyo3/issues/2118
struct FaultyIter(Range<usize>, usize); struct FaultyIter(Range<usize>, usize);
impl Iterator for FaultyIter { impl Iterator for FaultyIter {