diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-11 13:10:21 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-11 13:10:21 +0000 |
commit | 0e3329a6b82873531f63fb1358f57852723fad05 (patch) | |
tree | 3cfdc617c476d0d297d9c6599447bbe96a6da1ce /tests/bytecode | |
parent | 0288cf020ebfa9026bb8a30f5708b44bc8a82feb (diff) | |
download | micropython-0e3329a6b82873531f63fb1358f57852723fad05.tar.gz micropython-0e3329a6b82873531f63fb1358f57852723fad05.zip |
py, compiler: Allow lambda's to yield.
Diffstat (limited to 'tests/bytecode')
-rw-r--r-- | tests/bytecode/mp-tests/yield2.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bytecode/mp-tests/yield2.py b/tests/bytecode/mp-tests/yield2.py index 140fe0795a..acc0ec8e99 100644 --- a/tests/bytecode/mp-tests/yield2.py +++ b/tests/bytecode/mp-tests/yield2.py @@ -2,3 +2,6 @@ def f(): yield from a yield from (a, b) yield from f(a) + +lambda:(yield) +lambda:(yield 1) + 2 |