diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-07-19 11:50:34 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-19 11:50:34 (GMT) |
| commit | 58a84e58f45cb656b756cf007f629d868e119d8b (patch) | |
| tree | 537a66425d4352056378dc97d6c253727ed3fd2e | |
| parent | 2c4a60b9b9741872574690adb70a432b59e4c7b5 (diff) | |
| download | cpython-58a84e58f45cb656b756cf007f629d868e119d8b.zip cpython-58a84e58f45cb656b756cf007f629d868e119d8b.tar.gz cpython-58a84e58f45cb656b756cf007f629d868e119d8b.tar.bz2 | |
[3.13] gh-121657: Additional `yield from` error test using lambda (GH-121722) (GH-121961)
(cherry picked from commit 1056f2bc208bdfe562c79d2a5098723c50ae9c23)
Co-authored-by: Gregor <36135323+gege-hoho@users.noreply.github.com>
| -rw-r--r-- | Lib/test/test_generators.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index fd3e88f..6203db8 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -2247,6 +2247,11 @@ Traceback (most recent call last): ... SyntaxError: 'yield' outside function +>>> f=lambda: (yield from (1,2)), (yield from (3,4)) +Traceback (most recent call last): + ... +SyntaxError: 'yield from' outside function + >>> yield from [1,2] Traceback (most recent call last): ... |
