[PR #11122/2dfb46a4 backport][stable-12] remove ignore lines for Python 2 (#11134)

remove ignore lines for Python 2 (#11122)

* remove ignore lines for Python 2

* use yield from

* add changelog frag

* Update changelogs/fragments/11122-yield-from-ignore.yml



---------


(cherry picked from commit 2dfb46a4a6)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2025-11-12 21:36:26 +01:00
committed by GitHub
parent 93d23cfef6
commit 6df72406c5
8 changed files with 4 additions and 14 deletions

View File

@@ -231,8 +231,7 @@ class RunCommandMock(TestCaseMock):
def setup(self, mocker):
def _results():
for result in [(x["rc"], x["out"], x["err"]) for x in self.mock_specs]:
yield result
yield from [(x["rc"], x["out"], x["err"]) for x in self.mock_specs]
raise Exception("testcase has not enough run_command calls")
results = _results()