Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
nicoddemus committed Sep 4, 2025
commit 6d894a172323ade5faf23b952f82d7191f557f7d
4 changes: 2 additions & 2 deletions tests/test_pytest_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,12 @@ def bar(self) -> Iterable[int]:

def test_spy_return_iter_resets(mocker: MockerFixture) -> None:
class Foo:
iterables = [
iterables: list[Any] = [
(i for i in range(3)),
99,
]

def bar(self) -> Iterable[int]:
def bar(self) -> Any:
return self.iterables.pop(0)

foo = Foo()
Expand Down
Loading