mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
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 Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user